Also remove postinstall confirm checkbox from app view

This commit is contained in:
Johannes Zellner
2024-12-12 12:20:34 +01:00
parent 8d3b9685a1
commit eaae3f824b
2 changed files with 2 additions and 14 deletions

View File

@@ -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];