Also remove postinstall confirm checkbox from app view
This commit is contained in:
@@ -81,12 +81,10 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
$scope.appPostInstallConfirm = {
|
||||
app: {},
|
||||
message: '',
|
||||
confirmed: false,
|
||||
|
||||
show: function (app) {
|
||||
$scope.appPostInstallConfirm.app = app;
|
||||
$scope.appPostInstallConfirm.message = app.manifest.postInstallMessage;
|
||||
$scope.appPostInstallConfirm.confirmed = false;
|
||||
|
||||
$('#appPostInstallConfirmModal').modal('show');
|
||||
|
||||
@@ -94,8 +92,6 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
if (!$scope.appPostInstallConfirm.confirmed) return;
|
||||
|
||||
$scope.appPostInstallConfirm.app.pendingPostInstallConfirmation = false;
|
||||
delete localStorage['confirmPostInstall_' + $scope.appPostInstallConfirm.app.id];
|
||||
|
||||
@@ -104,11 +100,9 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
};
|
||||
|
||||
$scope.postInstallMessage = {
|
||||
confirmed: false,
|
||||
openApp: false,
|
||||
|
||||
show: function (openApp) {
|
||||
$scope.postInstallMessage.confirmed = false;
|
||||
$scope.postInstallMessage.openApp = !!openApp;
|
||||
|
||||
if (!$scope.app.manifest.postInstallMessage) return;
|
||||
@@ -116,8 +110,6 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
},
|
||||
|
||||
submit: function () {
|
||||
if (!$scope.postInstallMessage.confirmed) return;
|
||||
|
||||
$scope.app.pendingPostInstallConfirmation = false;
|
||||
delete localStorage['confirmPostInstall_' + $scope.app.id];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user