mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-26 04:14:19 +00:00
Expose user's settings and defaults inline
This improves performance by removing two AJAX calls and a lot of JavaScript promises.
This commit is contained in:
@@ -22,9 +22,6 @@
|
||||
controller: 'PreferencesController',
|
||||
controllerAs: 'app'
|
||||
}
|
||||
},
|
||||
resolve: {
|
||||
statePreferences: statePreferences
|
||||
}
|
||||
})
|
||||
.state('preferences.general', {
|
||||
@@ -64,13 +61,6 @@
|
||||
$urlRouterProvider.otherwise('/general');
|
||||
}
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
*/
|
||||
statePreferences.$inject = ['Preferences'];
|
||||
function statePreferences(Preferences) {
|
||||
return Preferences;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ngInject
|
||||
|
||||
Reference in New Issue
Block a user