debian-mirror-gitlab/app/assets/javascripts/experimentation/components/gitlab_experiment.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
253 B
Vue
Raw Normal View History

2021-04-29 21:17:54 +05:30
<script>
import { getExperimentVariant } from '../utils';
export default {
props: {
name: {
type: String,
required: true,
},
},
render() {
2022-05-07 20:08:51 +05:30
return this.$scopedSlots?.[getExperimentVariant(this.name)]?.();
2021-04-29 21:17:54 +05:30
},
};
</script>