mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 11:53:30 +02:00
add groups feature
This commit is contained in:
@@ -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 EmailAddressSeparatorCtrl(
|
||||
$scope
|
||||
, SettingsService
|
||||
) {
|
||||
|
||||
$scope.defaultEmailAddressSeparator = ','
|
||||
SettingsService.bind($scope, {
|
||||
target: 'emailAddressSeparator'
|
||||
, source: 'emailAddressSeparator'
|
||||
, defaultValue: $scope.defaultEmailAddressSeparator
|
||||
})
|
||||
|
||||
$scope.$watch(
|
||||
function() {
|
||||
return SettingsService.get('emailAddressSeparator')
|
||||
}
|
||||
, function(newvalue) {
|
||||
if (typeof newvalue === 'undefined') {
|
||||
SettingsService.set('emailAddressSeparator', $scope.defaultEmailAddressSeparator)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user