Ignore button clicks when post install is not yet confirmed

Angular does not remove the click handler on ng-disabled :-/
This commit is contained in:
Johannes Zellner
2018-06-15 13:39:30 +02:00
parent 34fd733bb7
commit bb34c8a242

View File

@@ -330,6 +330,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
},
submit: function () {
if (!$scope.appPostInstallConfirm.confirmed) return;
$scope.appPostInstallConfirm.app.pendingPostInstallConfirmation = false;
delete localStorage['confirmPostInstall_' + $scope.appPostInstallConfirm.app.id];