From 931c2cad0da1a84e3df0745b385ec06d29cc2634 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Mon, 20 Jun 2022 11:52:15 +0300 Subject: fix Modals, Tables and Pages: event logs, inventoty, post logs, operttions, global styles --- src/components/AppHeader/AppHeader.vue | 190 ++++++++++++++++----------------- 1 file changed, 91 insertions(+), 99 deletions(-) (limited to 'src/components/AppHeader/AppHeader.vue') diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue index 81287163b..a577b4527 100644 --- a/src/components/AppHeader/AppHeader.vue +++ b/src/components/AppHeader/AppHeader.vue @@ -32,7 +32,7 @@ - - + + - - 15:54:00 - - - {{ $t('appHeader.health') }} - - - - {{ $t('appHeader.power') }} - - - - - - - - - - + + {{ $t('appHeader.health') }} + + + + + + + @@ -180,7 +162,7 @@ import IconClose from '@carbon/icons-vue/es/close/20'; import IconMenu from '@carbon/icons-vue/es/menu/20'; import IconAvatar from '@carbon/icons-vue/es/user--avatar/20'; import IconRenew from '@carbon/icons-vue/es/renew/20'; -// import StatusIcon from '@/components/Global/StatusIcon'; +import StatusIcon from '@/components/Global/StatusIcon'; export default { name: 'AppHeader', components: { @@ -188,7 +170,7 @@ export default { IconMenu, IconAvatar, IconRenew, - // StatusIcon, + StatusIcon, }, mixins: [BVToastMixin], props: { @@ -295,6 +277,12 @@ export default { event.preventDefault(); this.$root.$emit('skip-navigation'); }, + toLogs() { + this.$router.push('/logs/event-logs').catch(() => {}); + }, + toOperations() { + this.$router.push('/operations/server-power-operations').catch(() => {}); + }, }, }; @@ -348,8 +336,16 @@ export default { .navbar { padding: 0; background-color: $navbar-color; + svg { + margin-right: 2px; + } + .status-icon { + svg { + vertical-align: text-bottom; + } + } @include media-breakpoint-up($responsive-layout-bp) { - height: $top-header-height; + height: $first-header-height; } .helper-menu { @@ -395,8 +391,8 @@ export default { .nav-trigger { fill: theme-color('light'); - width: $top-header-height; - height: $top-header-height; + width: $first-header-height; + height: $first-header-height; transition: none; display: inline-flex; flex: 0 0 20px; @@ -437,7 +433,7 @@ export default { .navbar-brand { padding: $spacer/2; - height: $top-header-height; + height: $first-header-height; line-height: 1; &:focus { box-shadow: inset 0 0 0 3px $navbar-color, inset 0 0 0 5px color('white'); @@ -445,10 +441,6 @@ export default { } } -.header-clock__icon { - margin-left: auto; -} - .app-header-logout, .app-header-notification { margin: 0 5px; -- cgit v1.2.3