mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 01:33:51 +02:00
Group events on group dialog
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
import { useGroupStore } from '../../../stores';
|
||||
|
||||
const { t } = useI18n();
|
||||
const { cachedGroups, showGroupDialog } = useGroupStore();
|
||||
const { cachedGroups } = useGroupStore();
|
||||
|
||||
const props = defineProps({
|
||||
event: {
|
||||
@@ -100,7 +100,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update-following-calendar-data']);
|
||||
const emit = defineEmits(['update-following-calendar-data', 'click-action']);
|
||||
|
||||
const showGroupName = computed(() => props.mode === 'timeline');
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
const capitalizeFirst = (str) => str?.charAt(0).toUpperCase() + str?.slice(1);
|
||||
|
||||
const onGroupClick = () => {
|
||||
showGroupDialog(props.event.ownerId);
|
||||
emit('click-action');
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -203,6 +203,10 @@
|
||||
flex: 0 0 280px;
|
||||
max-width: 280px;
|
||||
}
|
||||
&.group-dialog-grid-card {
|
||||
flex: 0 0 320px;
|
||||
max-width: 320px;
|
||||
}
|
||||
:deep(.el-card__body) {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
mode="timeline"
|
||||
:is-following="isEventFollowing(value.id)"
|
||||
:card-class="{ 'grouped-card': timeGroup.events.length > 1 }"
|
||||
@update-following-calendar-data="updateFollowingCalendarData" />
|
||||
@update-following-calendar-data="updateFollowingCalendarData"
|
||||
@click-action="showGroupDialog(value.ownerId)" />
|
||||
</div>
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
@@ -99,6 +100,7 @@
|
||||
mode="grid"
|
||||
:is-following="isEventFollowing(event.id)"
|
||||
@update-following-calendar-data="updateFollowingCalendarData"
|
||||
@click-action="showGroupDialog(event.ownerId)"
|
||||
card-class="grid-card" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -131,7 +133,7 @@
|
||||
|
||||
import GroupCalendarEventCard from '../components/GroupCalendarEventCard.vue';
|
||||
|
||||
const { cachedGroups } = useGroupStore();
|
||||
const { cachedGroups, applyGroupEvent, showGroupDialog } = useGroupStore();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -341,8 +343,7 @@
|
||||
try {
|
||||
const response = await groupRequest.getFollowingGroupCalendars(dayjs(selectedDay.value).toISOString());
|
||||
response.results.forEach((event) => {
|
||||
event.title = replaceBioSymbols(event.title);
|
||||
event.description = replaceBioSymbols(event.description);
|
||||
applyGroupEvent(event);
|
||||
});
|
||||
followingCalendar.value = response.results;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user