show ldap login into in all the post install dialogs

This commit is contained in:
Girish Ramakrishnan
2020-08-28 17:08:18 -07:00
parent 566f0f7783
commit b420d054ae
2 changed files with 12 additions and 0 deletions

View File

@@ -142,10 +142,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.postInstallMessage = {
confirmed: false,
openApp: false,
customAuth: false,
show: function (openApp) {
$scope.postInstallMessage.confirmed = false;
$scope.postInstallMessage.openApp = !!openApp;
$scope.postInstallMessage.customAuth = !($scope.app.manifest.addons['ldap'] || $scope.manifest.addons['oauth']);
if (!$scope.app.manifest.postInstallMessage) return;
$('#postInstallModal').modal('show');
@@ -1404,10 +1406,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
$scope.postInstallConfirm = {
message: '',
confirmed: false,
customAuth: false,
show: function () {
$scope.postInstallConfirm.message = $scope.app.manifest.postInstallMessage;
$scope.postInstallConfirm.confirmed = false;
$scope.postInstallConfirm.customAuth = !($scope.app.manifest.addons['ldap'] || $scope.app.manifest.addons['oauth']);
$('#postInstallConfirmModal').modal('show');