fix: fix async tip for some operations
Add async tip for some operation of a zun container Change-Id: I0197f8d8e291fddcf9902f93c19e7e5a4a6ec137
This commit is contained in:
parent
dda85bbf26
commit
c3297956a8
@ -31,6 +31,10 @@ export default class RebootContainer extends ConfirmAction {
|
||||
return t('Reboot');
|
||||
}
|
||||
|
||||
get isAsyncAction() {
|
||||
return true;
|
||||
}
|
||||
|
||||
policy = 'container:reboot';
|
||||
|
||||
aliasPolicy = 'zun:container:reboot';
|
||||
|
@ -32,6 +32,10 @@ export class RebuildContainer extends ModalAction {
|
||||
return t('Rebuild Container');
|
||||
}
|
||||
|
||||
get isAsyncAction() {
|
||||
return true;
|
||||
}
|
||||
|
||||
get defaultValue() {
|
||||
const { name, image, image_driver } = this.item;
|
||||
return {
|
||||
|
@ -31,6 +31,10 @@ export default class StartContainer extends ConfirmAction {
|
||||
return t('Start');
|
||||
}
|
||||
|
||||
get isAsyncAction() {
|
||||
return true;
|
||||
}
|
||||
|
||||
policy = 'container:start';
|
||||
|
||||
aliasPolicy = 'zun:container:start';
|
||||
|
@ -33,6 +33,10 @@ export default class StopContainer extends ConfirmAction {
|
||||
return t('Stop');
|
||||
}
|
||||
|
||||
get isAsyncAction() {
|
||||
return true;
|
||||
}
|
||||
|
||||
policy = 'container:stop';
|
||||
|
||||
aliasPolicy = 'zun:container:stop';
|
||||
|
Loading…
x
Reference in New Issue
Block a user