[WIP] Изменил конфиг, исправил отображение статусов в селекте календаря

This commit is contained in:
megavrilinvv
2023-03-07 17:29:43 +03:00
parent f60eea81fe
commit c61cc487d6
5 changed files with 84 additions and 71 deletions

View File

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