1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-03 21:05:23 +02:00

disable rollback button when application type is not applicatiom form

This commit is contained in:
Felix Han 2021-09-01 16:29:24 +12:00
parent b43fb6b5e6
commit b2da6101b6

View file

@ -219,7 +219,7 @@
class="btn btn-sm btn-primary" class="btn btn-sm btn-primary"
style="margin-left: 0; margin-bottom: 15px;" style="margin-left: 0; margin-bottom: 15px;"
ng-click="ctrl.rollbackApplication()" ng-click="ctrl.rollbackApplication()"
ng-disabled="ctrl.application.Revisions.length < 2" ng-disabled="ctrl.application.Revisions.length < 2 || ctrl.state.appType !== ctrl.KubernetesDeploymentTypes.APPLICATION_FORM"
> >
<i class="fas fa-history space-right" aria-hidden="true"></i>Rollback to previous configuration <i class="fas fa-history space-right" aria-hidden="true"></i>Rollback to previous configuration
</button> </button>