From 980ae4dbf24214d0b0003a6640ddaf1822849e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20R=C3=B6hrich?= Date: Tue, 12 Sep 2023 10:20:24 +0200 Subject: [PATCH] object store: fix websocket, add state colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add colors for states Terminating and Stopped - Fix websocket: typo in models/objectStore.js Signed-off-by: Moritz Röhrich --- src/models/objectStore.js | 4 ++-- src/routes/objectStorage/ObjectStoreList.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/models/objectStore.js b/src/models/objectStore.js index 91301c053..3413c85d7 100644 --- a/src/models/objectStore.js +++ b/src/models/objectStore.js @@ -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 { @@ -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) } diff --git a/src/routes/objectStorage/ObjectStoreList.js b/src/routes/objectStorage/ObjectStoreList.js index 4cea86f48..acaed6b8c 100644 --- a/src/routes/objectStorage/ObjectStoreList.js +++ b/src/routes/objectStorage/ObjectStoreList.js @@ -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)' }, }