diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-08-07 22:05:43 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-08-07 22:05:43 +0300 |
commit | 83badd07f783880079ecfb4f47705fe62760b8da (patch) | |
tree | 41ce99fe42c9d80c18012b0e2c669852ffdff79d /app/assets/javascripts/clusters/constants.js | |
parent | 29203198b6537551b7165538846eb9124c6d9ff3 (diff) |
Fix UI error whereby prometheus application status is updated
Diffstat (limited to 'app/assets/javascripts/clusters/constants.js')
-rw-r--r-- | app/assets/javascripts/clusters/constants.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/assets/javascripts/clusters/constants.js b/app/assets/javascripts/clusters/constants.js index 371f71fde44..72fc9355d82 100644 --- a/app/assets/javascripts/clusters/constants.js +++ b/app/assets/javascripts/clusters/constants.js @@ -1,10 +1,13 @@ // These need to match what is returned from the server -export const APPLICATION_NOT_INSTALLABLE = 'not_installable'; -export const APPLICATION_INSTALLABLE = 'installable'; -export const APPLICATION_SCHEDULED = 'scheduled'; -export const APPLICATION_INSTALLING = 'installing'; -export const APPLICATION_INSTALLED = 'installed'; -export const APPLICATION_ERROR = 'errored'; +export const APPLICATION_STATUS = { + NOT_INSTALLABLE: 'not_installable', + INSTALLABLE: 'installable', + SCHEDULED: 'scheduled', + INSTALLING: 'installing', + INSTALLED: 'installed', + UPDATED: 'updated', + ERROR: 'errored', +}; // These are only used client-side export const REQUEST_LOADING = 'request-loading'; |