Latest changes from Harvester master - d7d9d4af8a88d677695d7aff47a81d52041dfcca

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-11-12 11:50:17 +01:00
parent d04cd35a08
commit dc74441d26
46 changed files with 1290 additions and 1624 deletions
@@ -138,7 +138,7 @@ export default {
<div v-else>
<Banner color="warning" class="settings-banner">
<div>
{{ t('advancedSettings.subtext') }}
{{ t('harvester.setting.modifiedMessage') }}
</div>
</Banner>
@@ -97,8 +97,8 @@ export default {
},
changeRows(filteredRows, searchSchedule) {
this[searchSchedule] = searchSchedule;
this[backups] = filteredRows;
this['searchSchedule'] = searchSchedule;
this['backups'] = filteredRows;
},
sortGenerationFn() {
@@ -119,7 +119,7 @@ export default {
NAMESPACE,
{
name: 'targetVM',
labelKey: 'tableHeaders.targetVm',
labelKey: 'harvester.tableHeaders.targetVm',
value: 'attachVM',
align: 'left',
formatter: 'AttachVMWithName'
@@ -64,7 +64,7 @@ export default {
NAMESPACE,
{
name: 'targetVM',
labelKey: 'tableHeaders.targetVm',
labelKey: 'harvester.tableHeaders.targetVm',
value: 'attachVM',
align: 'left',
sort: 'attachVM',
@@ -1,7 +1,9 @@
<script>
import Loading from '@shell/components/Loading';
import ResourceTable from '@shell/components/ResourceTable';
import { PV, PVC, SCHEMA, LONGHORN } from '@shell/config/types';
import {
PV, PVC, SCHEMA, LONGHORN, STORAGE_CLASS
} from '@shell/config/types';
import { STATE, AGE, NAME, NAMESPACE } from '@shell/config/table-headers';
import HarvesterVolumeState from '../formatters/HarvesterVolumeState';
@@ -32,6 +34,7 @@ export default {
pvcs: this.$store.dispatch(`${ inStore }/findAll`, { type: PVC }),
pvs: this.$store.dispatch(`${ inStore }/findAll`, { type: PV }),
vms: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VM }),
scs: this.$store.dispatch(`${ inStore }/findAll`, { type: STORAGE_CLASS }),
};
const volumeSnapshotSchema = this.$store.getters[`${ inStore }/schemaFor`](VOLUME_SNAPSHOT);
@@ -1,7 +1,9 @@
<script>
import ResourceTable from '@shell/components/ResourceTable';
import { STATE, AGE, NAME, NAMESPACE } from '@shell/config/table-headers';
import { PVC, PV, NODE, POD } from '@shell/config/types';
import {
PVC, PV, NODE, POD, STORAGE_CLASS
} from '@shell/config/types';
import { allHash } from '@shell/utils/promise';
import Loading from '@shell/components/Loading';
@@ -79,6 +81,7 @@ export default {
images: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.IMAGE }),
restore: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.RESTORE }),
backups: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.BACKUP }),
storage: this.$store.dispatch(`${ inStore }/findAll`, { type: STORAGE_CLASS }),
};
if (this.$store.getters[`${ inStore }/schemaFor`](HCI.RESOURCE_QUOTA)) {