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');
|
return t('Reboot');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isAsyncAction() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
policy = 'container:reboot';
|
policy = 'container:reboot';
|
||||||
|
|
||||||
aliasPolicy = 'zun:container:reboot';
|
aliasPolicy = 'zun:container:reboot';
|
||||||
|
@ -32,6 +32,10 @@ export class RebuildContainer extends ModalAction {
|
|||||||
return t('Rebuild Container');
|
return t('Rebuild Container');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isAsyncAction() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
get defaultValue() {
|
get defaultValue() {
|
||||||
const { name, image, image_driver } = this.item;
|
const { name, image, image_driver } = this.item;
|
||||||
return {
|
return {
|
||||||
|
@ -31,6 +31,10 @@ export default class StartContainer extends ConfirmAction {
|
|||||||
return t('Start');
|
return t('Start');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isAsyncAction() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
policy = 'container:start';
|
policy = 'container:start';
|
||||||
|
|
||||||
aliasPolicy = 'zun:container:start';
|
aliasPolicy = 'zun:container:start';
|
||||||
|
@ -33,6 +33,10 @@ export default class StopContainer extends ConfirmAction {
|
|||||||
return t('Stop');
|
return t('Stop');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isAsyncAction() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
policy = 'container:stop';
|
policy = 'container:stop';
|
||||||
|
|
||||||
aliasPolicy = 'zun:container:stop';
|
aliasPolicy = 'zun:container:stop';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user