mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-19 10:08:12 +00:00
Improve login page
Used ngCloak directive to display the form only once AngularJS/Angular Material is loaded and all components initialized.
This commit is contained in:
1 parent
1f83680e12
commit
e226a32413
5 files changed
+43
-15
No files matched your search
@@ -21,18 +21,18 @@
|
||||
});
|
||||
return false;
|
||||
};
|
||||
$scope.showAbout = function() {
|
||||
var alert;
|
||||
alert = $mdDialog.alert({
|
||||
title: 'About SOGo',
|
||||
content: 'This is SOGo v3!',
|
||||
ok: 'OK'
|
||||
$scope.showAbout = function($event) {
|
||||
$mdDialog.show({
|
||||
targetEvent: $event,
|
||||
templateUrl: 'aboutBox.html',
|
||||
controller: AboutDialogController
|
||||
});
|
||||
$mdDialog
|
||||
.show( alert )
|
||||
.finally(function() {
|
||||
alert = undefined;
|
||||
});
|
||||
AboutDialogController.$inject = ['scope', '$mdDialog'];
|
||||
function AboutDialogController(scope, $mdDialog) {
|
||||
scope.closeDialog = function() {
|
||||
$mdDialog.hide();
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
})();
|
||||
Reference in new issue
Block a user