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();
},
},
};