Merge "fix: fix async tip for some operations"

This commit is contained in:
Zuul 2022-08-05 09:48:34 +00:00 committed by Gerrit Code Review
commit 92112b3ab9
4 changed files with 16 additions and 0 deletions

View File

@ -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';

View File

@ -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 {

View File

@ -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';

View File

@ -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';