WIP Исправила статусы, очистку форму создания

This commit is contained in:
Daria Golova
2023-03-20 16:36:28 +03:00
parent 1f50c12581
commit 6bfda2e2a7
5 changed files with 32 additions and 52 deletions

View File

@@ -26,7 +26,7 @@
</template>
<script>
import { statusesDictionary } from "@/pages/calendar/utils/statusesDictionary";
import { statusesConfig } from "@/pages/calendar/utils/statusesConfig";
export default {
name: "CalendarEventDescriptionCard",
@@ -48,14 +48,12 @@ export default {
return {
isCertainType: true,
position: {},
calendarConfig: statusesDictionary,
};
},
computed: {
status() {
return this.ownerEvent.status
? this.calendarConfig.find((e) => e.value === this.ownerEvent.status)
.label
? statusesConfig.find((e) => e.value === this.ownerEvent.status).label
: "";
},
typeColor() {