mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Add maintenance banner on UI (#797)
* fix bug on email separator Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * allow group name change Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * add maintenance banner on UI Signed-off-by: Denis barbaron <denis.barbaron@orange.com> * removes unnecessary comments Signed-off-by: Denis barbaron <denis.barbaron@orange.com> --------- Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright © 2019 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
* Copyright © 2019-2024 code initially contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
|
||||
**/
|
||||
|
||||
const oboe = require('oboe')
|
||||
@@ -28,6 +28,10 @@ module.exports = function UsersServiceFactory(
|
||||
})
|
||||
}
|
||||
|
||||
UsersService.getUsersAlertMessage = function() {
|
||||
return $http.get('/api/v1/users/alertMessage')
|
||||
}
|
||||
|
||||
UsersService.getUsers = function(fields) {
|
||||
return $http.get('/api/v1/users?fields=' + fields)
|
||||
}
|
||||
@@ -92,5 +96,10 @@ module.exports = function UsersServiceFactory(
|
||||
$rootScope.$apply()
|
||||
})
|
||||
|
||||
socket.on('user.menu.users.updated', function(user) {
|
||||
$rootScope.$broadcast('user.menu.users.updated', user)
|
||||
$rootScope.$apply()
|
||||
})
|
||||
|
||||
return UsersService
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user