diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-02-07 00:47:28 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2020-02-17 21:48:43 +0300 |
commit | 1ace1d91e80425eeed482b33e21838acb7f7325a (patch) | |
tree | 86700b60471ae41222bdba6902b3cb308978953a /src/components/Global | |
parent | c031b6988d6381ae1d2ecefd04e8c2af47f0ff4a (diff) | |
download | webui-vue-1ace1d91e80425eeed482b33e21838acb7f7325a.tar.xz |
Add Health status to app header
Added logging path and interface to websocket subscription
data filter, to dynamically indicate Health status in the
app header.
- Update OverviewEvents to use highPriorityEvents data
- Refactor EventLogStore
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I35ad30b005c70625a5f6a69488d45db0fa049374
Diffstat (limited to 'src/components/Global')
-rw-r--r-- | src/components/Global/StatusIcon.vue | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/Global/StatusIcon.vue b/src/components/Global/StatusIcon.vue index a2c7f04f..d59eaec2 100644 --- a/src/components/Global/StatusIcon.vue +++ b/src/components/Global/StatusIcon.vue @@ -1,6 +1,7 @@ <template> <span :class="['status-icon', status]"> <icon-success v-if="status === 'success'" /> + <icon-warning v-else-if="status === 'warning'" /> <icon-danger v-else-if="status === 'danger'" /> <icon-secondary v-else /> </span> @@ -15,8 +16,9 @@ export default { name: 'StatusIcon', components: { iconSuccess: IconCheckmark, - iconDanger: IconWarning, - iconSecondary: IconError + iconDanger: IconError, + iconSecondary: IconError, //TODO: swap with right asset when available + iconWarning: IconWarning }, props: { status: { @@ -39,5 +41,8 @@ export default { &.secondary { fill: $secondary; } + &.warning { + fill: $warning; + } } </style> |