mirror of https://github.com/rancher/dashboard.git
Fix extend namespace class (#6863)
This commit is contained in:
parent
92a6911b1a
commit
747c4efab9
|
|
@ -1,7 +1,7 @@
|
||||||
import { insertAt } from '@shell/utils/array';
|
import { insertAt } from '@shell/utils/array';
|
||||||
import SteveModel from '@shell/plugins/steve/steve-class';
|
import namespace from '@shell/models/namespace';
|
||||||
|
|
||||||
export default class HciNamespace extends SteveModel {
|
export default class HciNamespace extends namespace {
|
||||||
get _availableActions() {
|
get _availableActions() {
|
||||||
const out = super._availableActions;
|
const out = super._availableActions;
|
||||||
const remove = out.findIndex(a => a.action === 'promptRemove');
|
const remove = out.findIndex(a => a.action === 'promptRemove');
|
||||||
|
|
@ -30,7 +30,7 @@ export default class HciNamespace extends SteveModel {
|
||||||
this.$dispatch('promptModal', {
|
this.$dispatch('promptModal', {
|
||||||
resources,
|
resources,
|
||||||
warningMessageKey: 'promptRemove.confirmRelatedResource',
|
warningMessageKey: 'promptRemove.confirmRelatedResource',
|
||||||
component: 'harvester/ConfirmRelatedToRemoveDialog'
|
component: 'ConfirmRelatedToRemoveDialog'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue