Merge "fix: fix async tip for some operations"
This commit is contained in:
commit
92112b3ab9
@ -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