diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-11 12:17:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-11 12:17:45 +0300 |
commit | 02f78c1ee8be411f4455c6679cfd87f3a0b2721b (patch) | |
tree | 098077a02aac74fa7d596a9f131cbf83de55ab05 /app/assets/javascripts/monitoring | |
parent | fa08a33e7034a560905d31f45b3af73db54eee0a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/monitoring')
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue index c9767330b73..6467d953500 100644 --- a/app/assets/javascripts/monitoring/components/dashboard.vue +++ b/app/assets/javascripts/monitoring/components/dashboard.vue @@ -1,5 +1,13 @@ <script> -import { GlButton, GlModalDirective, GlTooltipDirective, GlIcon } from '@gitlab/ui'; +import { + GlButton, + GlModalDirective, + GlTooltipDirective, + GlIcon, + GlAlert, + GlSprintf, + GlLink, +} from '@gitlab/ui'; import Mousetrap from 'mousetrap'; import VueDraggable from 'vuedraggable'; import { mapActions, mapState, mapGetters } from 'vuex'; @@ -38,6 +46,9 @@ export default { GroupEmptyState, VariablesSection, LinksSection, + GlAlert, + GlSprintf, + GlLink, }, directives: { GlModal: GlModalDirective, @@ -143,6 +154,7 @@ export default { isRearrangingPanels: false, originalDocumentTitle: document.title, hoveredPanel: '', + isDeprecationNoticeDismissed: false, }; }, computed: { @@ -392,9 +404,44 @@ export default { }, }; </script> - <template> <div class="prometheus-graphs" data-qa-selector="prometheus_graphs"> + <div> + <gl-alert + v-if="!isDeprecationNoticeDismissed" + :title="__('Feature deprecation and removal')" + class="mb-3" + variant="danger" + @dismiss="isDeprecationNoticeDismissed = true" + > + <gl-sprintf + :message=" + s__( + 'Deprecations|The metrics, logs and tracing features were deprecated in GitLab 14.7 and are %{epicStart} scheduled for removal %{epicEnd} in GitLab 15.0.', + ) + " + > + <template #epic="{ content }"> + <gl-link href="https://gitlab.com/groups/gitlab-org/-/epics/7188" target="_blank">{{ + content + }}</gl-link> + </template> + </gl-sprintf> + <gl-sprintf + :message=" + s__( + 'Deprecations|For information on a possible replacement %{epicStart} learn more about Opstrace %{epicEnd}.', + ) + " + > + <template #epic="{ content }"> + <gl-link href="https://gitlab.com/groups/gitlab-org/-/epics/6976" target="_blank">{{ + content + }}</gl-link> + </template> + </gl-sprintf> + </gl-alert> + </div> <dashboard-header v-if="showHeader" ref="prometheusGraphsHeader" |