diff options
Diffstat (limited to 'app/assets/javascripts/monitoring/pages')
-rw-r--r-- | app/assets/javascripts/monitoring/pages/dashboard_page.vue | 29 | ||||
-rw-r--r-- | app/assets/javascripts/monitoring/pages/panel_new_page.vue | 45 |
2 files changed, 0 insertions, 74 deletions
diff --git a/app/assets/javascripts/monitoring/pages/dashboard_page.vue b/app/assets/javascripts/monitoring/pages/dashboard_page.vue deleted file mode 100644 index df0e2d7f8f6..00000000000 --- a/app/assets/javascripts/monitoring/pages/dashboard_page.vue +++ /dev/null @@ -1,29 +0,0 @@ -<script> -import { mapActions } from 'vuex'; -import Dashboard from '../components/dashboard.vue'; - -export default { - components: { - Dashboard, - }, - props: { - dashboardProps: { - type: Object, - required: true, - }, - }, - created() { - // This is to support the older URL <project>/-/environments/:env_id/metrics?dashboard=:path - // and the new format <project>/-/metrics/:dashboardPath - const encodedDashboard = this.$route.query.dashboard || this.$route.params.dashboard; - const currentDashboard = encodedDashboard ? decodeURIComponent(encodedDashboard) : null; - this.setCurrentDashboard({ currentDashboard }); - }, - methods: { - ...mapActions('monitoringDashboard', ['setCurrentDashboard']), - }, -}; -</script> -<template> - <dashboard v-bind="{ ...dashboardProps }" /> -</template> diff --git a/app/assets/javascripts/monitoring/pages/panel_new_page.vue b/app/assets/javascripts/monitoring/pages/panel_new_page.vue deleted file mode 100644 index dbda6e80dac..00000000000 --- a/app/assets/javascripts/monitoring/pages/panel_new_page.vue +++ /dev/null @@ -1,45 +0,0 @@ -<script> -import { GlButton, GlTooltipDirective } from '@gitlab/ui'; -import { mapState } from 'vuex'; -import { s__ } from '~/locale'; -import DashboardPanelBuilder from '../components/dashboard_panel_builder.vue'; -import { DASHBOARD_PAGE } from '../router/constants'; - -export default { - components: { - GlButton, - DashboardPanelBuilder, - }, - directives: { - GlTooltip: GlTooltipDirective, - }, - computed: { - ...mapState('monitoringDashboard', ['panelPreviewYml']), - dashboardPageLocation() { - return { - ...this.$route, - name: DASHBOARD_PAGE, - }; - }, - }, - i18n: { - backToDashboard: s__('Metrics|Back to dashboard'), - }, -}; -</script> -<template> - <div class="gl-mt-5"> - <div class="gl-display-flex gl-align-items-baseline gl-mb-5"> - <gl-button - v-gl-tooltip - icon="go-back" - :to="dashboardPageLocation" - :aria-label="$options.i18n.backToDashboard" - :title="$options.i18n.backToDashboard" - class="gl-mr-5" - /> - <h1 class="gl-font-size-h1 gl-my-0">{{ s__('Metrics|Add panel') }}</h1> - </div> - <dashboard-panel-builder /> - </div> -</template> |