Disable elements on page during loading
Pages: Network settings, Date and time, LDAP, Manage power usage
More details: https://github.com/openbmc/webui-vue/issues/15
Signed-off-by: Mateusz Gapski <mateuszx.gapski@intel.com>
Change-Id: I02c5aaff180a4ce445b7135403a169a8db3704da
diff --git a/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue b/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
index 74879f3..008feff 100644
--- a/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
+++ b/src/views/Configuration/DateTimeSettings/DateTimeSettings.vue
@@ -33,7 +33,11 @@
</page-section>
<page-section :section-title="$t('pageDateTimeSettings.configureSettings')">
<b-form novalidate @submit.prevent="submitForm">
- <b-form-group label="Configure date and time" label-sr-only>
+ <b-form-group
+ label="Configure date and time"
+ :disabled="loading"
+ label-sr-only
+ >
<b-form-radio
v-model="form.configurationSelected"
value="manual"
@@ -181,14 +185,14 @@
</b-form-group>
</b-col>
</b-row>
+ <b-button
+ variant="primary"
+ type="submit"
+ data-test-id="dateTimeSettings-button-saveSettings"
+ >
+ {{ $t('global.action.saveSettings') }}
+ </b-button>
</b-form-group>
- <b-button
- variant="primary"
- type="submit"
- data-test-id="dateTimeSettings-button-saveSettings"
- >
- {{ $t('global.action.saveSettings') }}
- </b-button>
</b-form>
</page-section>
</b-container>