mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-16 13:54:54 +00:00
(js) Keep center list visible on xs screen
For Calendar module.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
CalendarsController.$inject = ['$rootScope', '$scope', '$window', '$mdDialog', '$log', '$mdToast', 'Dialog', 'sgSettings', 'Preferences', 'Calendar'];
|
||||
function CalendarsController($rootScope, $scope, $window, $mdDialog, $log, $mdToast, Dialog, Settings, Preferences, Calendar) {
|
||||
CalendarsController.$inject = ['$rootScope', '$scope', '$window', '$mdDialog', '$mdMedia', '$log', '$mdToast', 'sgConstant', 'Dialog', 'sgSettings', 'Preferences', 'Calendar'];
|
||||
function CalendarsController($rootScope, $scope, $window, $mdDialog, $mdMedia, $log, $mdToast, sgConstant, Dialog, Settings, Preferences, Calendar) {
|
||||
var vm = this;
|
||||
|
||||
vm.activeUser = Settings.activeUser;
|
||||
@@ -69,6 +69,13 @@
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* The center is always displayed on small screens.
|
||||
*/
|
||||
this.centerIsClose = function (closed) {
|
||||
return closed && $mdMedia(sgConstant['gt-xs']);
|
||||
};
|
||||
|
||||
/**
|
||||
* Only allow to sort items within the same list.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user