WIP Изменила функции
This commit is contained in:
@@ -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();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user