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