Skip to content

Commit

Permalink
Merge pull request #10696 from glekner/fix-2019634
Browse files Browse the repository at this point in the history
Bug 2019634: Pause and migration is enabled in action list
  • Loading branch information
openshift-merge-robot committed Dec 20, 2021
2 parents 7a3a77e + 85f25d9 commit a0804fe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const VmActionFactory = {
btnText: i18next.t('kubevirt-plugin~Pause'),
executeFn: () => pauseVMI(vmi),
}),
accessReview: asAccessReview(kindObj, vm, 'patch'),
};
},
Unpause: (kindObj: K8sKind, vm: VMKind, { vmi }: ActionArgs): Action => {
Expand Down Expand Up @@ -208,6 +209,7 @@ export const VmActionFactory = {
btnText: i18next.t('kubevirt-plugin~Migrate Node to Node'),
executeFn: () => startVMIMigration(vmi),
}),
accessReview: asAccessReview(kindObj, vm, 'patch'),
};
},
CancelMigration: (kindObj: K8sKind, vm: VMKind, { vmStatusBundle }: ActionArgs): Action => {
Expand Down

0 comments on commit a0804fe

Please sign in to comment.