2020-04-22 19:07:51 +05:30
|
|
|
<script>
|
2020-10-24 23:57:45 +05:30
|
|
|
import { GlToggle, GlFormGroup, GlFormTextarea, GlButton } from '@gitlab/ui';
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'MaintenanceModeSettingsApp',
|
|
|
|
components: {
|
|
|
|
GlToggle,
|
|
|
|
GlFormGroup,
|
|
|
|
GlFormTextarea,
|
2020-10-24 23:57:45 +05:30
|
|
|
GlButton,
|
2020-04-22 19:07:51 +05:30
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
inMaintenanceMode: false,
|
|
|
|
bannerMessage: '',
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
|
|
|
<article>
|
|
|
|
<div class="d-flex align-items-center mb-3">
|
|
|
|
<gl-toggle v-model="inMaintenanceMode" class="mb-0" />
|
|
|
|
<div class="ml-2">
|
|
|
|
<p class="mb-0">{{ __('Enable maintenance mode') }}</p>
|
|
|
|
<p class="mb-0 text-secondary-500">
|
|
|
|
{{
|
|
|
|
__('Non-admin users can sign in with read-only access and make read-only API requests.')
|
|
|
|
}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<gl-form-group label="Banner Message" label-for="maintenanceBannerMessage">
|
|
|
|
<gl-form-textarea
|
|
|
|
id="maintenanceBannerMessage"
|
|
|
|
v-model="bannerMessage"
|
|
|
|
:placeholder="__(`GitLab is undergoing maintenance and is operating in a read-only mode.`)"
|
|
|
|
/>
|
|
|
|
</gl-form-group>
|
|
|
|
<div class="mt-4">
|
2020-10-24 23:57:45 +05:30
|
|
|
<gl-button variant="success" category="primary">{{ __('Save changes') }}</gl-button>
|
2020-04-22 19:07:51 +05:30
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</template>
|