Display read-only settings for information purpose
This commit is contained in:
parent
6ef91a92e5
commit
a1c6eadbe5
3 changed files with 25 additions and 1 deletions
|
@ -68,6 +68,9 @@ angular.module("FICApp")
|
|||
'update': {method: 'PUT'},
|
||||
})
|
||||
})
|
||||
.factory("ROSettings", function($resource) {
|
||||
return $resource("/api/settings-ro.json")
|
||||
})
|
||||
.factory("Settings", function($resource) {
|
||||
return $resource("/api/settings.json", null, {
|
||||
'update': {method: 'PUT'},
|
||||
|
@ -328,8 +331,9 @@ angular.module("FICApp")
|
|||
$interval(updBox, 750);
|
||||
})
|
||||
|
||||
.controller("SettingsController", function($scope, $rootScope, Settings, $location, $http) {
|
||||
.controller("SettingsController", function($scope, $rootScope, Settings, ROSettings, $location, $http) {
|
||||
$scope.config = Settings.get();
|
||||
$scope.configro = ROSettings.get();
|
||||
$scope.duration = 240;
|
||||
|
||||
$scope.saveSettings = function(msg) {
|
||||
|
|
Reference in a new issue