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

@@ -1,15 +1,45 @@
module.exports = function SettingsCtrl($scope, gettext) {
/**
* Copyright © 2019 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
**/
$scope.settingTabs = [
module.exports = function SettingsCtrl($scope, gettext, AppState) {
$scope.settingTabs = []
$scope.settingTabs.push(
{
title: gettext('General'),
icon: 'fa-gears fa-fw',
templateUrl: 'settings/general/general.pug'
},
}
)
$scope.settingTabs.push(
{
title: gettext('Keys'),
icon: 'fa-key fa-fw',
templateUrl: 'settings/keys/keys.pug'
}
]
)
$scope.settingTabs.push(
{
title: gettext('Groups'),
icon: 'fa-object-group fa-fw',
templateUrl: 'settings/groups/groups.pug'
}
)
if (AppState.user.privilege === 'admin') {
$scope.settingTabs.push(
{
title: gettext('Devices'),
icon: 'fa-mobile stf-settings-tabs-device-icon fa-fw',
templateUrl: 'settings/devices/devices.pug'
}
)
$scope.settingTabs.push(
{
title: gettext('Users'),
icon: 'fa-user fa-fw',
templateUrl: 'settings/users/users.pug'
}
)
}
}