mirror of https://github.com/portainer/portainer
fix(app): show one tooltip to describe rollback feature [EE-6825] (#11779)
Co-authored-by: testa113 <testa113>pull/11789/head
parent
f16d2e5d28
commit
4bcefb4866
|
@ -70,7 +70,6 @@ export function RollbackApplicationButton({
|
||||||
patchAppMutation.isLoading;
|
patchAppMutation.isLoading;
|
||||||
|
|
||||||
const rollbackButton = (
|
const rollbackButton = (
|
||||||
<div className="flex gap-x-2">
|
|
||||||
<Button
|
<Button
|
||||||
ng-if="!ctrl.isExternalApplication()"
|
ng-if="!ctrl.isExternalApplication()"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -84,12 +83,11 @@ export function RollbackApplicationButton({
|
||||||
<Icon icon={RotateCcw} className="mr-1" />
|
<Icon icon={RotateCcw} className="mr-1" />
|
||||||
Rollback to previous configuration
|
Rollback to previous configuration
|
||||||
</Button>
|
</Button>
|
||||||
<Tooltip message="Only one level of rollback is available, i.e. if you roll back from v2 to v1, and then roll back again, you will end up back at v2. Note that service changes and autoscaler rule changes are not included in rollback functionality. This is how Kubernetes works natively." />
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Authorized authorizations="K8sApplicationDetailsW">
|
<Authorized authorizations="K8sApplicationDetailsW">
|
||||||
|
<div className="flex gap-x-2">
|
||||||
{isRollbackNotAvailable ? (
|
{isRollbackNotAvailable ? (
|
||||||
<TooltipWithChildren message="Cannot roll back to previous configuration as none currently exists">
|
<TooltipWithChildren message="Cannot roll back to previous configuration as none currently exists">
|
||||||
<span>{rollbackButton}</span>
|
<span>{rollbackButton}</span>
|
||||||
|
@ -97,6 +95,8 @@ export function RollbackApplicationButton({
|
||||||
) : (
|
) : (
|
||||||
rollbackButton
|
rollbackButton
|
||||||
)}
|
)}
|
||||||
|
<Tooltip message="Only one level of rollback is available, i.e. if you roll back from v2 to v1, and then roll back again, you will end up back at v2. Note that service changes and autoscaler rule changes are not included in rollback functionality. This is how Kubernetes works natively." />
|
||||||
|
</div>
|
||||||
</Authorized>
|
</Authorized>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue