debian-mirror-gitlab/app/assets/javascripts/operation_settings/components/metrics_settings.vue

56 lines
1.4 KiB
Vue
Raw Normal View History

2020-06-23 00:09:42 +05:30
<script>
2020-10-24 23:57:45 +05:30
import { GlButton, GlLink } from '@gitlab/ui';
2021-03-11 19:13:27 +05:30
import { mapState, mapActions } from 'vuex';
2020-06-23 00:09:42 +05:30
import DashboardTimezone from './form_group/dashboard_timezone.vue';
2021-03-11 19:13:27 +05:30
import ExternalDashboard from './form_group/external_dashboard.vue';
2020-06-23 00:09:42 +05:30
export default {
components: {
2020-10-24 23:57:45 +05:30
GlButton,
2020-06-23 00:09:42 +05:30
GlLink,
ExternalDashboard,
DashboardTimezone,
},
computed: {
...mapState(['helpPage']),
userDashboardUrl: {
get() {
return this.externalDashboard.url;
},
set(url) {
this.setExternalDashboardUrl(url);
},
},
},
methods: {
...mapActions(['saveChanges']),
},
};
</script>
<template>
<section class="settings no-animate">
<div class="settings-header">
2021-04-29 21:17:54 +05:30
<h4
class="js-section-header settings-title js-settings-toggle js-settings-toggle-trigger-only"
>
2021-09-04 01:27:46 +05:30
{{ s__('MetricsSettings|Metrics') }}
2021-03-11 19:13:27 +05:30
</h4>
2020-10-24 23:57:45 +05:30
<gl-button class="js-settings-toggle">{{ __('Expand') }}</gl-button>
2020-06-23 00:09:42 +05:30
<p class="js-section-sub-header">
2021-09-04 01:27:46 +05:30
{{ s__('MetricsSettings|Manage metrics dashboard settings.') }}
<gl-link :href="helpPage">{{ __('Learn more.') }}</gl-link>
2020-06-23 00:09:42 +05:30
</p>
</div>
<div class="settings-content">
<form>
<dashboard-timezone />
<external-dashboard />
2021-09-04 01:27:46 +05:30
<gl-button variant="confirm" category="primary" @click="saveChanges">
2021-01-03 14:25:43 +05:30
{{ __('Save Changes') }}
</gl-button>
2020-06-23 00:09:42 +05:30
</form>
</div>
</section>
</template>