+
+
-
-
-
-
-
-
![]()
-
+
+
+
+
+
+
![]()
+
-
-
-
- About
-
-
-
-
-
-
+
+
+
diff --git a/UI/WebServerResources/js/Main.app.js b/UI/WebServerResources/js/Main.app.js
new file mode 100644
index 000000000..ca84585d4
--- /dev/null
+++ b/UI/WebServerResources/js/Main.app.js
@@ -0,0 +1,38 @@
+/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* JavaScript for MainUI (SOGoRootPage) */
+
+(function() {
+ 'use strict';
+
+ angular.module('SOGo.MainUI', ['SOGo.Common', 'SOGo.Authentication'])
+ .controller('loginController', loginController);
+
+ loginController.$inject = ['$scope', '$mdDialog', 'Authentication'];
+ function loginController($scope, $mdDialog, Authentication) {
+ $scope.warning = false;
+ $scope.creds = { username: cookieUsername, password: null };
+ $scope.login = function(creds) {
+ $scope.warning = false;
+ Authentication.login(creds)
+ .then(function(url) {
+ window.location.href = url;
+ }, function(msg) {
+ $scope.warning = msg.error;
+ });
+ return false;
+ };
+ $scope.showAbout = function() {
+ var alert;
+ alert = $mdDialog.alert({
+ title: 'About SOGo',
+ content: 'This is SOGo v3!',
+ ok: 'OK'
+ });
+ $mdDialog
+ .show( alert )
+ .finally(function() {
+ alert = undefined;
+ });
+ };
+ }
+})();
diff --git a/UI/WebServerResources/js/SOGoRootPage.js b/UI/WebServerResources/js/SOGoRootPage.js
deleted file mode 100644
index ec97d95e2..000000000
--- a/UI/WebServerResources/js/SOGoRootPage.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* JavaScript for SOGoRootPage */
-
-(function() {
- 'use strict';
-
- angular.module('SOGo.MainUI', ['SOGo.Authentication', 'SOGo.UI'])
-
- .controller('loginController', ['$scope', '$mdDialog', 'Authentication', function($scope, $mdDialog, Authentication) {
- $scope.warning = false;
- $scope.creds = { username: cookieUsername, password: null };
- $scope.login = function(creds) {
- $scope.warning = false;
- Authentication.login(creds)
- .then(function(url) {
- window.location.href = url;
- }, function(msg) {
- $scope.warning = msg.error;
- });
- return false;
- };
- $scope.showAbout = function() {
- var alert;
- alert = $mdDialog.alert({
- title: 'About SOGo',
- content: 'This is SOGo v3!',
- ok: 'OK'
- });
- $mdDialog
- .show( alert )
- .finally(function() {
- alert = undefined;
- });
- };
- }]);
-})();
diff --git a/UI/WebServerResources/scss/styles.scss b/UI/WebServerResources/scss/styles.scss
index f46051ac0..20d56f745 100755
--- a/UI/WebServerResources/scss/styles.scss
+++ b/UI/WebServerResources/scss/styles.scss
@@ -47,7 +47,7 @@
@import 'components/slider/slider';
@import 'components/sticky/sticky';
@import 'components/subheader/subheader';
-//@import 'components/switch/switch';
+@import 'components/switch/switch';
@import 'components/tabs/tabs';
//@import 'components/toast/toast';
@import 'components/toolbar/toolbar';