Welcome to mirror list, hosted at ThFree Co, Russian Federation.

incubation_alert.vue « components « experiment_tracking « ml « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51c1e9356776b9e860077c83d9414ac059e131f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<script>
import { GlAlert, GlLink } from '@gitlab/ui';
import { __ } from '~/locale';

export default {
  i18n: {
    titleLabel: __('Machine Learning Experiment Tracking is in Incubating Phase'),
    contentLabel: __(
      'GitLab incubates features to explore new use cases. These features are updated regularly, and support is limited',
    ),
    learnMoreLabel: __('Learn More'),
    feedbackLabel: __('Feedback and Updates'),
  },
  name: 'MlopsIncubationAlert',
  components: { GlAlert, GlLink },
  data() {
    return {
      isAlertDismissed: false,
    };
  },
  computed: {
    shouldShowAlert() {
      return !this.isAlertDismissed;
    },
  },
  methods: {
    dismissAlert() {
      this.isAlertDismissed = true;
    },
  },
};
</script>

<template>
  <gl-alert
    v-if="shouldShowAlert"
    :title="$options.i18n.titleLabel"
    variant="warning"
    :primary-button-text="$options.i18n.feedbackLabel"
    primary-button-link="https://gitlab.com/groups/gitlab-org/-/epics/8560"
    @dismiss="dismissAlert"
  >
    {{ $options.i18n.contentLabel }}
    <gl-link href="https://about.gitlab.com/handbook/engineering/incubation/" target="_blank">{{
      $options.i18n.learnMoreLabel
    }}</gl-link>
  </gl-alert>
</template>