mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 15:01:46 +00:00
(cherry picked from commit 15950eb209165a980ec53d22fe2898b94d6b1c8b) Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
28 lines
571 B
JavaScript
28 lines
571 B
JavaScript
import { clone } from '@shell/utils/object';
|
|
import { HCI } from '../types';
|
|
import HarvesterResource from './harvester';
|
|
|
|
export default class HciSubnet extends HarvesterResource {
|
|
get groupByVpc() {
|
|
return this.spec?.vpc || '';
|
|
}
|
|
|
|
get doneOverride() {
|
|
const detailLocation = clone(this.listLocation);
|
|
|
|
detailLocation.params.resource = HCI.VPC;
|
|
|
|
return detailLocation;
|
|
}
|
|
|
|
get parentLocationOverride() {
|
|
return {
|
|
...this.listLocation,
|
|
params: {
|
|
...this.listLocation.params,
|
|
resource: HCI.VPC
|
|
}
|
|
};
|
|
}
|
|
}
|