c009cc1392
* feat: multiple auth instances * fix: auth setup + strategy initialization * feat: admin auth - add strategy * feat: redirect on login - group setting * feat: oauth2 generic - props definitions * feat: new login UI (wip) * feat: new login UI (wip) * feat: admin security login settings * feat: tabset editor indicators + print view improvements * fix: code styling
63 lines
1.0 KiB
Vue
63 lines
1.0 KiB
Vue
<template lang='pug'>
|
|
v-snackbar.nav-notify(
|
|
:color='notification.style'
|
|
top
|
|
multi-line
|
|
v-model='notificationState'
|
|
:timeout='6000'
|
|
)
|
|
.text-left
|
|
v-icon.mr-3(dark) mdi-{{ notification.icon }}
|
|
span {{ notification.message }}
|
|
</template>
|
|
|
|
<script>
|
|
import { get, sync } from 'vuex-pathify'
|
|
|
|
export default {
|
|
data() {
|
|
return { }
|
|
},
|
|
computed: {
|
|
notification: get('notification'),
|
|
notificationState: sync('notification@isActive')
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang='scss'>
|
|
.nav-notify {
|
|
top: -64px;
|
|
padding-top: 0;
|
|
z-index: 999;
|
|
|
|
.v-snack__wrapper {
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
position: relative;
|
|
margin-top: 0;
|
|
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: rgba(255,255,255,.4);
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
animation: nav-notify-anim 6s linear;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes nav-notify-anim {
|
|
0% {
|
|
width: 100%;
|
|
}
|
|
100% {
|
|
width: 0%;
|
|
}
|
|
}
|
|
</style>
|