WIP Изменила функции

This commit is contained in:
Daria Golova
2022-11-11 19:17:51 +03:00
parent a044b667b5
commit 1cdd7abcff
2 changed files with 8 additions and 5 deletions

View File

@@ -196,8 +196,11 @@ export default {
composeFullName(object) { composeFullName(object) {
return `${object.last_name} ${object.first_name} ${object.patronymic}`; return `${object.last_name} ${object.first_name} ${object.patronymic}`;
}, },
changeTheme() { setActiveTheme() {
this.isActive = !this.isActive; this.isActive = true;
},
setDefaultTheme() {
this.isActive = false;
}, },
changeDetailsShown() { changeDetailsShown() {
this.someDetailsShown = false; this.someDetailsShown = false;
@@ -212,12 +215,12 @@ export default {
openDescriptionCard() { openDescriptionCard() {
if (!this.isOpenDescriptionCard && !this.isActive) { if (!this.isOpenDescriptionCard && !this.isActive) {
this.isOpenDescriptionCard = true; this.isOpenDescriptionCard = true;
this.changeTheme(); this.setActiveTheme();
} }
}, },
closeDescriptionCard() { closeDescriptionCard() {
this.hideDescriptionCard(); this.hideDescriptionCard();
this.changeTheme(); this.setDefaultTheme();
}, },
}, },
}; };

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
.flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-0.bottom-3 .flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-0.bottom-4
.flex.justify-between .flex.justify-between
span.title.text-xl.font-bold {{!selectedEventData.id ? "Назначение события" : "Изменение события"}} span.title.text-xl.font-bold {{!selectedEventData.id ? "Назначение события" : "Изменение события"}}
.flex.pt-2 .flex.pt-2