[WIP] Изменил конфиг, исправил отображение статусов в селекте календаря
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user