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');
|
||||
}
|
||||
|
||||
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