mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2026-02-05 02:34:13 +02:00
added dialog window for notifications about off animations
This commit is contained in:
@@ -17,14 +17,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<notiicationwindow-component :isAnimationOn = "AnimationOff"></notiicationwindow-component>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import NotiicationwindowComponent from "@/components/NotiicationwindowComponent.vue";
|
||||
import '@/assets/css/ComponentsStyles/asidebar.css'
|
||||
|
||||
export default {
|
||||
name: 'AsideBar-Element',
|
||||
components: { NotiicationwindowComponent },
|
||||
data() {
|
||||
return {
|
||||
AnimationOff: false
|
||||
|
||||
23
luckydiamond/src/components/NotiicationwindowComponent.vue
Normal file
23
luckydiamond/src/components/NotiicationwindowComponent.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<transition name="fade">
|
||||
<div class="notification" v-if="isAnimationOn">
|
||||
<div class="notification__content">
|
||||
<h3>Анимации выключены</h3>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import '@/assets/css/ComponentsStyles/notification.css'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
isAnimationOn: Boolean
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user