mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
* fix: hide Virtul machine migration tabs if forklift addon is not enabled
* fix: rename advanced to configurations
* fix: fixed column width
* refactor: review comment
* revert: power on background color
---------
(cherry picked from commit 41cf44d231)
Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -14,6 +14,17 @@ export default class ForkliftPlan extends HarvesterResource {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The base HarvesterResource sets `doneOverride` to `listLocation`, which would
|
||||
* force every single-item delete to redirect to the VM Migration dashboard.
|
||||
* Return undefined so the delete flow stays on the current page (list/dashboard)
|
||||
* and only falls back to the shell's default navigation when a now-invalid
|
||||
* detail page is being viewed.
|
||||
*/
|
||||
get doneOverride() {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
get planFailed() {
|
||||
const conditions = this.status?.conditions || [];
|
||||
|
||||
@@ -247,7 +258,7 @@ export default class ForkliftPlan extends HarvesterResource {
|
||||
|
||||
/**
|
||||
* Deleting a Plan cascades via ownerReferences set at creation time.
|
||||
* Kubernetes GC will automatically delete: Migration, NetworkMap, StorageMap, Provider (→ Secret).
|
||||
* Kubernetes GC will automatically delete: Migration, NetworkMap, StorageMap.
|
||||
* Use foreground propagation to ensure children are deleted before the parent.
|
||||
*/
|
||||
remove(opt = {}) {
|
||||
|
||||
Reference in New Issue
Block a user