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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/components/publish_toolbar.vue')
-rw-r--r--app/assets/javascripts/static_site_editor/components/publish_toolbar.vue15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/assets/javascripts/static_site_editor/components/publish_toolbar.vue b/app/assets/javascripts/static_site_editor/components/publish_toolbar.vue
index 83b50b2f8eb..7f00fb71b04 100644
--- a/app/assets/javascripts/static_site_editor/components/publish_toolbar.vue
+++ b/app/assets/javascripts/static_site_editor/components/publish_toolbar.vue
@@ -1,9 +1,10 @@
<script>
-import { GlNewButton } from '@gitlab/ui';
+import { GlNewButton, GlLoadingIcon } from '@gitlab/ui';
export default {
components: {
GlNewButton,
+ GlLoadingIcon,
},
props: {
saveable: {
@@ -11,12 +12,22 @@ export default {
required: false,
default: false,
},
+ savingChanges: {
+ type: Boolean,
+ required: false,
+ default: false,
+ },
},
};
</script>
<template>
<div class="d-flex bg-light border-top justify-content-between align-items-center py-3 px-4">
- <gl-new-button variant="success" :disabled="!saveable">
+ <gl-loading-icon :class="{ invisible: !savingChanges }" size="md" />
+ <gl-new-button
+ variant="success"
+ :disabled="!saveable || savingChanges"
+ @click="$emit('submit')"
+ >
{{ __('Submit Changes') }}
</gl-new-button>
</div>