Fixup sso message display in postinstall and info dialogs
This commit is contained in:
+2
-4
@@ -13,9 +13,8 @@
|
||||
</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p ng-show="appPostInstallConfirm.customAuth && !appPostInstallConfirm.app.manifest.addons.email"></p>
|
||||
<p ng-show="appPostInstallConfirm.app.manifest.addons.email">This app is set up to allow all users with a mailbox on this Cloudron. Login with the email and Cloudron password to access the mailbox.</p>
|
||||
<p ng-show="!appPostInstallConfirm.customAuth && !appPostInstallConfirm.app.manifest.addons.email"> This app is set up to authenticate with the Cloudron User Directory. Cloudron users can login and use {{ appPostInstallConfirm.app.manifest.title }}.</p>
|
||||
<p ng-show="appPostInstallConfirm.app.sso && !appPostInstallConfirm.app.manifest.addons.email"> This app is set up to authenticate with the Cloudron User Directory. Cloudron users can login and use {{ appPostInstallConfirm.app.manifest.title }}.</p>
|
||||
|
||||
<div ng-bind-html="appPostInstallConfirm.app.manifest.postInstallMessage | markdown2html"></div>
|
||||
<div ng-show="appPostInstallConfirm.app.manifest.documentationUrl">
|
||||
@@ -58,9 +57,8 @@
|
||||
If you need further help, refer to Cloudron's <a target="_blank" ng-href="{{ appInfo.app.manifest.forumUrl || 'https://forum.cloudron.io' }}">{{ appInfo.app.manifest.title }} forum section</a>.
|
||||
</p>
|
||||
|
||||
<p ng-show="appInfo.customAuth && !appInstall.app.manifest.addons.email"></p>
|
||||
<p ng-show="appInfo.app.manifest.addons.email">This app is set up to allow all users with a mailbox on this Cloudron. Login with the email and Cloudron password to access the mailbox.</p>
|
||||
<p ng-show="!appInfo.customAuth && !appInfo.app.manifest.addons.email"> This app is set up to authenticate with the Cloudron User Directory. Cloudron users can login and use {{ appInfo.app.manifest.title }}.</p>
|
||||
<p ng-show="appInfo.app.sso && !appInfo.app.manifest.addons.email"> This app is set up to authenticate with the Cloudron User Directory. Cloudron users can login and use {{ appInfo.app.manifest.title }}.</p>
|
||||
|
||||
<a ng-show="appInfo.app.manifest.postInstallMessage" href="" data-toggle="collapse" data-parent="#accordion" data-target="#appinfoPostinstallMessage">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
|
||||
@@ -40,13 +40,11 @@ angular.module('Application').controller('AppsController', ['$scope', '$timeout'
|
||||
app: {},
|
||||
message: '',
|
||||
confirmed: false,
|
||||
customAuth: false,
|
||||
|
||||
show: function (app) {
|
||||
$scope.appPostInstallConfirm.app = app;
|
||||
$scope.appPostInstallConfirm.message = app.manifest.postInstallMessage;
|
||||
$scope.appPostInstallConfirm.confirmed = false;
|
||||
$scope.appPostInstallConfirm.customAuth = !(app.manifest.addons['ldap'] || app.manifest.addons['oauth']);
|
||||
|
||||
$('#appPostInstallConfirmModal').modal('show');
|
||||
|
||||
@@ -66,12 +64,10 @@ angular.module('Application').controller('AppsController', ['$scope', '$timeout'
|
||||
$scope.appInfo = {
|
||||
app: {},
|
||||
message: '',
|
||||
customAuth: false,
|
||||
|
||||
show: function (app) {
|
||||
$scope.appInfo.app = app;
|
||||
$scope.appInfo.message = app.manifest.postInstallMessage;
|
||||
$scope.appInfo.customAuth = !(app.manifest.addons['ldap'] || app.manifest.addons['oauth']);
|
||||
|
||||
$('#appinfoPostinstallMessage').collapse('hide');
|
||||
$('#appInfoModal').modal('show');
|
||||
|
||||
Reference in New Issue
Block a user