add groups feature

This commit is contained in:
Denis barbaron
2019-06-12 10:29:07 +02:00
parent 6fd750dad5
commit 7f5dc4c152
119 changed files with 12416 additions and 402 deletions

View File

@@ -0,0 +1,27 @@
/**
* Copyright © 2019 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
module.exports = function DateFormatCtrl(
$scope
, SettingsService
) {
$scope.defaultDateFormat = 'M/d/yy h:mm:ss a'
SettingsService.bind($scope, {
target: 'dateFormat'
, source: 'dateFormat'
, defaultValue: $scope.defaultDateFormat
})
$scope.$watch(
function() {
return SettingsService.get('dateFormat')
}
, function(newvalue) {
if (typeof newvalue === 'undefined') {
SettingsService.set('dateFormat', $scope.defaultDateFormat)
}
}
)
}