diff options
author | SurenNeware <sneware9@in.ibm.com> | 2020-08-20 16:02:28 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-08-28 22:04:53 +0300 |
commit | ad8438bbe5a42d16526d7d94162baaf466e7f744 (patch) | |
tree | 1ca9fd2de8d4d1cfa94fea9fbc589babaa7346ff /src/views/Control | |
parent | 4d1dbb5fc427e8b895a23d0ad1a2b991e9ce9a8c (diff) | |
download | webui-vue-ad8438bbe5a42d16526d7d94162baaf466e7f744.tar.xz |
Add info type alert to the message
- Add info type alert to the message when Server power operation is in
progress.
- Changed bootstrap b-alert component to our custom alert component to
remove bootstrap dependency.
Signed-off-by: Suren Neware <sneware9@in.ibm.com>
Change-Id: Ic1c02f06303969d81f5d35914c45c5d373b73356
Diffstat (limited to 'src/views/Control')
-rw-r--r-- | src/views/Control/ServerPowerOperations/ServerPowerOperations.vue | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue index 0db01298..32b2ea86 100644 --- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue +++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue @@ -51,11 +51,13 @@ <page-section :section-title="$t('pageServerPowerOperations.operations')" > - <b-alert :show="oneTimeBootEnabled" variant="warning"> + <alert :show="oneTimeBootEnabled" variant="warning"> {{ $t('pageServerPowerOperations.oneTimeBootWarning') }} - </b-alert> + </alert> <template v-if="isOperationInProgress"> - {{ $t('pageServerPowerOperations.operationInProgress') }} + <alert variant="info"> + {{ $t('pageServerPowerOperations.operationInProgress') }} + </alert> </template> <template v-else-if="hostStatus === 'off'"> <b-button @@ -135,15 +137,16 @@ </template> <script> -import PageTitle from '../../../components/Global/PageTitle'; -import PageSection from '../../../components/Global/PageSection'; -import BVToastMixin from '../../../components/Mixins/BVToastMixin'; +import PageTitle from '@/components/Global/PageTitle'; +import PageSection from '@/components/Global/PageSection'; +import BVToastMixin from '@/components/Mixins/BVToastMixin'; import BootSettings from './BootSettings'; import LoadingBarMixin from '@/components/Mixins/LoadingBarMixin'; +import Alert from '@/components/Global/Alert'; export default { name: 'ServerPowerOperations', - components: { PageTitle, PageSection, BootSettings }, + components: { PageTitle, PageSection, BootSettings, Alert }, mixins: [BVToastMixin, LoadingBarMixin], data() { return { |