mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
save readingmode when changed
This commit is contained in:
@@ -194,6 +194,12 @@ module.directive('toolbar', function($state, $stateParams, $route, $location,
|
||||
});
|
||||
|
||||
$scope.settingsService = SettingsService;
|
||||
$scope.$watch('settingsService.settings.readingMode', function(newValue,
|
||||
oldValue) {
|
||||
if (newValue && oldValue && newValue != oldValue) {
|
||||
SettingsService.save();
|
||||
}
|
||||
});
|
||||
$scope.refresh = function() {
|
||||
$scope.$emit('emitReload');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user