diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2021-08-23 15:41:02 +0300 |
---|---|---|
committer | Dixsie Wolmers <dixsiew@gmail.com> | 2022-01-28 00:14:50 +0300 |
commit | e39b95d6d06c9389c123440d1571edc5cee211bb (patch) | |
tree | 68a65efe9eb104232cc1153b4517d6ab531f7182 /src/views/Logs/Dumps/DumpsForm.vue | |
parent | 2b33ec2cd523cc48c40977b31a13c2ce925f58c5 (diff) | |
download | webui-vue-e39b95d6d06c9389c123440d1571edc5cee211bb.tar.xz |
Add ability to view all the dumps
The story is integration of these two API responses
for their respective dumps:
1.Resource and Hostboot dumps:
redfish/v1/Systems/system/LogServices/Dump/Entries
2.BMC Dumps: /redfish/v1/Managers/bmc/LogServices/Dump/Entries
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I24ded733e682d21904e92e2e8be1951e46d33b09
Diffstat (limited to 'src/views/Logs/Dumps/DumpsForm.vue')
-rw-r--r-- | src/views/Logs/Dumps/DumpsForm.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/views/Logs/Dumps/DumpsForm.vue b/src/views/Logs/Dumps/DumpsForm.vue index 02ec1864..07f4a060 100644 --- a/src/views/Logs/Dumps/DumpsForm.vue +++ b/src/views/Logs/Dumps/DumpsForm.vue @@ -34,10 +34,8 @@ <script> import { required } from 'vuelidate/lib/validators'; - import ModalConfirmation from './DumpsModalConfirmation'; import Alert from '@/components/Global/Alert'; - import BVToastMixin from '@/components/Mixins/BVToastMixin'; import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js'; @@ -62,9 +60,13 @@ export default { handleSubmit() { this.$v.$touch(); if (this.$v.$invalid) return; + + // System dump initiation if (this.selectedDumpType === 'system') { this.showConfirmationModal(); - } else { + } + // BMC dump initiation + else if (this.selectedDumpType === 'bmc') { this.$store .dispatch('dumps/createBmcDump') .then(() => |