Merge branch 'UC-204' into 'master'
[WIP] Добавил переход на главную страницу при клике на иконку, заменил иконку... See merge request andrusyakka/urban-couscous!275
This commit is contained in:
10
src/assets/icons/error.svg
Normal file
10
src/assets/icons/error.svg
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_2219_45392)">
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 23.375C18.2822 23.375 23.375 18.2822 23.375 12C23.375 5.71776 18.2822 0.625 12 0.625C5.71776 0.625 0.625 5.71776 0.625 12C0.625 18.2822 5.71776 23.375 12 23.375ZM16.5459 18.8899L18.844 16.5918L14.2478 11.9956L18.8555 7.38793L16.5574 5.08984L11.9497 9.69751L7.35351 5.10131L5.05541 7.39941L9.65161 11.9956L5.06689 16.5803L7.36499 18.8784L11.9497 14.2937L16.5459 18.8899Z" fill="#FFFF"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_2219_45392">
|
||||||
|
<rect width="24" height="24" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 690 B |
@@ -2,7 +2,12 @@
|
|||||||
.notification-container.flex.justify-between(:style="{ backgroundColor: bgColor }")
|
.notification-container.flex.justify-between(:style="{ backgroundColor: bgColor }")
|
||||||
.notification-content.flex.mr-16
|
.notification-content.flex.mr-16
|
||||||
.grid(:class="{'grid-rows': message}")
|
.grid(:class="{'grid-rows': message}")
|
||||||
.text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(:class="iconClass")
|
.text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(
|
||||||
|
v-if="this.type !== 'error'",
|
||||||
|
:class="iconClass"
|
||||||
|
)
|
||||||
|
.error.text-xs.row-span-full.flex.justify-center.items-center(v-else)
|
||||||
|
img(:src="errorIcon")
|
||||||
.text-white.text-base.font-black(v-if="title") {{ title }}
|
.text-white.text-base.font-black(v-if="title") {{ title }}
|
||||||
.text-white.text-base.font-semibold(v-if="message") {{ message }}
|
.text-white.text-base.font-semibold(v-if="message") {{ message }}
|
||||||
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
|
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
|
||||||
@@ -10,6 +15,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { deleteNotification } from "@/components/Notifications/notificationContext";
|
import { deleteNotification } from "@/components/Notifications/notificationContext";
|
||||||
|
import errorIcon from "@/assets/icons/error.svg";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "NotificationItem",
|
name: "NotificationItem",
|
||||||
@@ -23,6 +29,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timerId: 0,
|
timerId: 0,
|
||||||
|
errorIcon,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -73,6 +80,7 @@ export default {
|
|||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
width: 100%
|
width: 100%
|
||||||
left: 0
|
left: 0
|
||||||
|
|
||||||
.icon
|
.icon
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
border: 1.5px solid white
|
border: 1.5px solid white
|
||||||
@@ -80,9 +88,16 @@ export default {
|
|||||||
line-height: 10px
|
line-height: 10px
|
||||||
width: 24px
|
width: 24px
|
||||||
height: 24px
|
height: 24px
|
||||||
|
|
||||||
|
.error
|
||||||
|
border-radius: 50%
|
||||||
|
width: 24px
|
||||||
|
height: 24px
|
||||||
|
|
||||||
.grid
|
.grid
|
||||||
grid-template-columns: 24px 1fr
|
grid-template-columns: 24px 1fr
|
||||||
grid-column-gap: 8px
|
grid-column-gap: 8px
|
||||||
|
|
||||||
.grid-rows
|
.grid-rows
|
||||||
grid-template-rows: repeat(2, auto)
|
grid-template-rows: repeat(2, auto)
|
||||||
grid-row-gap: 8px
|
grid-row-gap: 8px
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.header-wrapper.relative.flex.justify-center.box-border.py-2.pl-4_75px.pr-6
|
.header-wrapper.relative.flex.justify-center.box-border.py-2.pl-4_75px.pr-6
|
||||||
.flex.items-center.box-border.cursor-pointer.mr-auto
|
.flex.items-center.box-border.cursor-pointer.mr-auto
|
||||||
img.logo-img.mr-29_25px(src="@/assets/images/logo.svg", alt="Logo")
|
img.logo-img.mr-29_25px(
|
||||||
|
src="@/assets/images/logo.svg",
|
||||||
|
alt="Logo",
|
||||||
|
@click="redirectHomePage"
|
||||||
|
)
|
||||||
header-inputs
|
header-inputs
|
||||||
.flex.ml-auto
|
.flex.ml-auto
|
||||||
q-btn.mr-9(
|
q-btn.mr-9(
|
||||||
@@ -103,6 +107,9 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
redirectHomePage() {
|
||||||
|
this.$router.push("/calendar");
|
||||||
|
},
|
||||||
logout() {
|
logout() {
|
||||||
localStorage.removeItem("tokenAccess");
|
localStorage.removeItem("tokenAccess");
|
||||||
this.$router.go("/login");
|
this.$router.go("/login");
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ export default {
|
|||||||
"$route.path"() {
|
"$route.path"() {
|
||||||
if (this.$router.currentRoute._value.fullPath === "/calendar") {
|
if (this.$router.currentRoute._value.fullPath === "/calendar") {
|
||||||
this.currenPageBorder = true;
|
this.currenPageBorder = true;
|
||||||
|
this.pageSettings.forEach((el) =>
|
||||||
|
el.path === "#/calendar" ? (el.active = true) : (el.active = false)
|
||||||
|
);
|
||||||
} else this.currenPageBorder = false;
|
} else this.currenPageBorder = false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
base-modal(v-model="value", hide-overlay, title="Создание клиента", draggable, height="696px" )
|
base-modal(v-model="value", hide-overlay, title="Создание клиента", draggable )
|
||||||
.wrapper-create.gap-y-8.flex.flex-col.pt-8
|
.wrapper-create.gap-y-8.flex.flex-col.pt-8
|
||||||
.flex.gap-x-4.h-fit
|
.flex.gap-x-4.h-fit
|
||||||
.flex.gap-x-3.w-full
|
.flex.gap-x-3.w-full
|
||||||
|
|||||||
Reference in New Issue
Block a user