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) {
return `${object.last_name} ${object.first_name} ${object.patronymic}`;
},
changeTheme() {
this.isActive = !this.isActive;
setActiveTheme() {
this.isActive = true;
},
setDefaultTheme() {
this.isActive = false;
},
changeDetailsShown() {
this.someDetailsShown = false;
@@ -212,12 +215,12 @@ export default {
openDescriptionCard() {
if (!this.isOpenDescriptionCard && !this.isActive) {
this.isOpenDescriptionCard = true;
this.changeTheme();
this.setActiveTheme();
}
},
closeDescriptionCard() {
this.hideDescriptionCard();
this.changeTheme();
this.setDefaultTheme();
},
},
};

View File

@@ -1,5 +1,5 @@
<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
span.title.text-xl.font-bold {{!selectedEventData.id ? "Назначение события" : "Изменение события"}}
.flex.pt-2