add info dialog for apps

This commit is contained in:
Johannes Zellner
2020-06-10 18:00:50 +02:00
parent 886c668107
commit 429f45a09a
3 changed files with 47 additions and 1 deletions

View File

@@ -54,6 +54,20 @@ angular.module('Application').controller('AppsController', ['$scope', '$timeout'
}
};
$scope.appInfo = {
app: {},
message: '',
show: function (app) {
$scope.appInfo.app = app;
$scope.appInfo.message = app.manifest.postInstallMessage;
$('#appInfoModal').modal('show');
return false; // prevent propagation and default
}
};
$scope.showAppConfigure = function (app, view) {
$location.path('/app/' + app.id + '/' + view);
};