Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
object store: fix websocket, add state colors
Browse files Browse the repository at this point in the history
- Add colors for states Terminating and Stopped
- Fix websocket: typo in models/objectStore.js

Signed-off-by: Moritz Röhrich <[email protected]>
  • Loading branch information
m-ildefons committed Sep 12, 2023
1 parent 28b824a commit 980ae4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/models/objectStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
yield put({ type: 'query' })
},
*startWS({ payload }, { select }) {
let ws = yield select(state => state.objectStore.ws)
let ws = yield select(state => state.objectstorage.ws)
if (ws) {
ws.open()
} else {
Expand All @@ -60,7 +60,7 @@ export default {
},
// eslint-disable-next-line no-unused-vars
*stopWS({ payload }, { select }) {
let ws = yield select(state => state.objectStore.ws)
let ws = yield select(state => state.objectstorage.ws)
if (ws) {
ws.close(1000)
}
Expand Down
4 changes: 3 additions & 1 deletion src/routes/objectStorage/ObjectStoreList.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function list({
Unknown: { color: '#F15354', bg: 'rgba(241,83,84,.05)' },
Starting: { color: '#F1C40F', bg: 'rgba(241,196,15,.05)' },
Running: { color: '#27AE5F', bg: 'rgba(39,174,95,.05)' },
Stopping: { color: '#DEE1E3', bg: 'rgba(222,225,227,.05)' },
Stopping: { color: '#DEE1E3', bg: 'rgba(241,241,241,.05)' },
Stopped: { color: '#959CA6', bg: 'rgba(241,241,241,.05)' },
Terminating: { color: '#DEE1E3', bg: 'rgba(222,225,227,.05)' },
Error: { color: '#F15354', bg: 'rgba(241,83,84,.1)' },
}

Expand Down

0 comments on commit 980ae4d

Please sign in to comment.