[WIP] Фикс конфига статусов
This commit is contained in:
@@ -52,7 +52,7 @@ import { trimName } from "@/pages/newCalendar/utils/calendarFunctions.js";
|
||||
import {
|
||||
recordList,
|
||||
recordPreviewConfig,
|
||||
recordingStatuses,
|
||||
statuses,
|
||||
} from "@/pages/newCalendar/utils/calendarConfig.js";
|
||||
export default {
|
||||
name: "CalendarRecordPreview",
|
||||
@@ -93,14 +93,12 @@ export default {
|
||||
return this.start?.format("HH:mm") + " – " + this.end?.format("HH:mm");
|
||||
},
|
||||
statusLabel() {
|
||||
return recordingStatuses.find(
|
||||
(elem) => elem.value === this.record?.status
|
||||
).label;
|
||||
return statuses[0].data.find((elem) => elem.value === this.record?.status)
|
||||
.label;
|
||||
},
|
||||
statusIcon() {
|
||||
return recordingStatuses.find(
|
||||
(elem) => elem.value === this.record?.status
|
||||
).icon;
|
||||
return statuses[0].data.find((elem) => elem.value === this.record?.status)
|
||||
.icon;
|
||||
},
|
||||
memberData() {
|
||||
return this.record?.member;
|
||||
|
||||
Reference in New Issue
Block a user