Merge branch 'UC-204' into 'master'

[WIP] Добавил переход на главную страницу при клике на иконку, заменил иконку...

See merge request andrusyakka/urban-couscous!275
This commit is contained in:
Vasiliy Gavrilin
2023-03-02 15:07:00 +00:00
5 changed files with 38 additions and 3 deletions

View 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

View File

@@ -2,7 +2,12 @@
.notification-container.flex.justify-between(:style="{ backgroundColor: bgColor }")
.notification-content.flex.mr-16
.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-semibold(v-if="message") {{ message }}
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
@@ -10,6 +15,7 @@
<script>
import { deleteNotification } from "@/components/Notifications/notificationContext";
import errorIcon from "@/assets/icons/error.svg";
export default {
name: "NotificationItem",
@@ -23,6 +29,7 @@ export default {
data() {
return {
timerId: 0,
errorIcon,
};
},
computed: {
@@ -73,6 +80,7 @@ export default {
border-radius: 5px
width: 100%
left: 0
.icon
border-radius: 50%
border: 1.5px solid white
@@ -80,9 +88,16 @@ export default {
line-height: 10px
width: 24px
height: 24px
.error
border-radius: 50%
width: 24px
height: 24px
.grid
grid-template-columns: 24px 1fr
grid-column-gap: 8px
.grid-rows
grid-template-rows: repeat(2, auto)
grid-row-gap: 8px

View File

@@ -1,7 +1,11 @@
<template lang="pug">
.header-wrapper.relative.flex.justify-center.box-border.py-2.pl-4_75px.pr-6
.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
.flex.ml-auto
q-btn.mr-9(
@@ -103,6 +107,9 @@ export default {
},
},
methods: {
redirectHomePage() {
this.$router.push("/calendar");
},
logout() {
localStorage.removeItem("tokenAccess");
this.$router.go("/login");

View File

@@ -78,6 +78,9 @@ export default {
"$route.path"() {
if (this.$router.currentRoute._value.fullPath === "/calendar") {
this.currenPageBorder = true;
this.pageSettings.forEach((el) =>
el.path === "#/calendar" ? (el.active = true) : (el.active = false)
);
} else this.currenPageBorder = false;
},
},

View File

@@ -1,5 +1,5 @@
<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
.flex.gap-x-4.h-fit
.flex.gap-x-3.w-full