Skip to content

Commit

Permalink
fix unit test failed
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Aug 15, 2024
1 parent 9c9a821 commit 0846983
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions pkg/harvester/edit/harvesterhci.io.schedulevmbackup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import CruResource from '@shell/components/CruResource';
import Tabbed from '@shell/components/Tabbed';
import Tab from '@shell/components/Tabbed/Tab';
import MessageLink from '@shell/components/MessageLink';
import Checkbox from '@components/Form/Checkbox/Checkbox';
import LabeledSelect from '@shell/components/form/LabeledSelect';
import CreateEditView from '@shell/mixins/create-edit-view';
import { isCronValid } from '@shell/utils/validators/cron-schedule';
Expand All @@ -20,7 +19,6 @@ import { _EDIT, _CREATE } from '@shell/config/query-params';
export default {
name: 'CreateVMSchedule',
components: {
Checkbox,
CruResource,
Tabbed,
Tab,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default {
</div>
</div>
<Banner
v-if="value?.volumeBackups?.error?.message"
v-if="value.volumeBackups && value.volumeBackups.error && value.volumeBackups.error.message"
color="error"
class="mb-20"
:label="value.volumeBackups.error.message"
Expand Down
3 changes: 3 additions & 0 deletions pkg/harvester/list/harvesterhci.io.vmsnapshot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,22 @@ export default {
labelKey: 'tableHeaders.targetVm',
value: 'attachVM',
align: 'left',
sort: 'attachVM',
formatter: 'AttachVMWithName'
},
{
name: 'backupCreatedFrom',
labelKey: 'harvester.tableHeaders.vmSchedule',
value: 'sourceSchedule',
sort: 'sourceSchedule',
formatter: 'BackupCreatedFrom',
},
{
name: 'readyToUse',
labelKey: 'tableHeaders.readyToUse',
value: 'status.readyToUse',
align: 'center',
sort: 'status.readyToUse',
formatter: 'Checked',
},
AGE
Expand Down

0 comments on commit 0846983

Please sign in to comment.