Also remove the app info dialog code from apps grid

This commit is contained in:
Johannes Zellner
2019-09-13 16:07:55 +02:00
parent 7c9654a541
commit a1fe79c876
2 changed files with 1 additions and 58 deletions

View File

@@ -179,11 +179,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
}
};
$scope.appInfo = {
app: {},
message: ''
};
$scope.appPostInstallConfirm = {
app: {},
message: '',
@@ -263,7 +258,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$('#appErrorModal').modal('hide');
$('#appRestoreModal').modal('hide');
$('#appUpdateModal').modal('hide');
$('#appInfoModal').modal('hide');
$('#appPostInstallConfirmModal').modal('hide');
// reset update dialog
@@ -288,18 +282,6 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appPostInstallConfirm.confirmed = false;
};
$scope.showInformation = function (app) {
$scope.reset();
$scope.appInfo.app = app;
$scope.appInfo.message = app.manifest.postInstallMessage;
$('#appInfoModal').modal('show');
return false; // prevent propagation and default
};
$scope.renderAccessRestrictionUser = function (userId) {
var user = $scope.users.filter(function (u) { return u.id === userId; })[0];
@@ -376,7 +358,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
});
// setup all the dialog focus handling
['appUpdateModal', 'appRestoreModal', 'appInfoModal', 'appErrorModal'].forEach(function (id) {
['appUpdateModal', 'appRestoreModal', 'appErrorModal'].forEach(function (id) {
$('#' + id).on('shown.bs.modal', function () {
$(this).find("[autofocus]:first").focus();
});