mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Use automation state for devices used by api
This commit is contained in:
@@ -10,7 +10,8 @@ module.exports = function StateClassesService() {
|
||||
present: 'state-present btn-primary-outline',
|
||||
preparing: 'state-preparing btn-primary-outline btn-success-outline',
|
||||
unauthorized: 'state-unauthorized btn-danger-outline',
|
||||
offline: 'state-offline btn-warning-outline'
|
||||
offline: 'state-offline btn-warning-outline',
|
||||
automation: 'state-automation btn-info'
|
||||
}[state]
|
||||
if (typeof stateClasses === 'undefined') {
|
||||
stateClasses = 'btn-default-outline'
|
||||
@@ -27,7 +28,8 @@ module.exports = function StateClassesService() {
|
||||
present: 'state-present',
|
||||
preparing: 'state-preparing',
|
||||
unauthorized: 'state-unauthorized',
|
||||
offline: 'state-offline'
|
||||
offline: 'state-offline',
|
||||
automation: 'state-automation'
|
||||
}[state]
|
||||
if (typeof stateClasses === 'undefined') {
|
||||
stateClasses = ''
|
||||
@@ -37,4 +39,3 @@ module.exports = function StateClassesService() {
|
||||
|
||||
return service
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user