Use automation state for devices used by api

This commit is contained in:
Vishal Banthia
2016-11-23 06:45:36 +05:30
parent 42b55889ae
commit a62a6094e4
11 changed files with 45 additions and 10 deletions

View File

@@ -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
}