mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fixes
This commit is contained in:
@@ -112,6 +112,7 @@
|
|||||||
import { groupRequest } from '../../../api';
|
import { groupRequest } from '../../../api';
|
||||||
import { useGroupStore } from '../../../stores';
|
import { useGroupStore } from '../../../stores';
|
||||||
import GroupCalendarEventCard from './GroupCalendarEventCard.vue';
|
import GroupCalendarEventCard from './GroupCalendarEventCard.vue';
|
||||||
|
import { replaceBioSymbols } from '../../../shared/utils';
|
||||||
|
|
||||||
const { cachedGroups } = storeToRefs(useGroupStore());
|
const { cachedGroups } = storeToRefs(useGroupStore());
|
||||||
const { showGroupDialog } = useGroupStore();
|
const { showGroupDialog } = useGroupStore();
|
||||||
@@ -283,6 +284,10 @@
|
|||||||
async function getCalendarData() {
|
async function getCalendarData() {
|
||||||
try {
|
try {
|
||||||
const response = await groupRequest.getGroupCalendars(dayjs(selectedDay.value).toISOString());
|
const response = await groupRequest.getGroupCalendars(dayjs(selectedDay.value).toISOString());
|
||||||
|
response.results.forEach((event) => {
|
||||||
|
event.title = replaceBioSymbols(event.title);
|
||||||
|
event.description = replaceBioSymbols(event.description);
|
||||||
|
});
|
||||||
calendar.value = response.results;
|
calendar.value = response.results;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching calendars:', error);
|
console.error('Error fetching calendars:', error);
|
||||||
@@ -292,6 +297,10 @@
|
|||||||
async function getFollowingCalendarData() {
|
async function getFollowingCalendarData() {
|
||||||
try {
|
try {
|
||||||
const response = await groupRequest.getFollowingGroupCalendars(dayjs(selectedDay.value).toISOString());
|
const response = await groupRequest.getFollowingGroupCalendars(dayjs(selectedDay.value).toISOString());
|
||||||
|
response.results.forEach((event) => {
|
||||||
|
event.title = replaceBioSymbols(event.title);
|
||||||
|
event.description = replaceBioSymbols(event.description);
|
||||||
|
});
|
||||||
followingCalendar.value = response.results;
|
followingCalendar.value = response.results;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error fetching following calendars:', error);
|
console.error('Error fetching following calendars:', error);
|
||||||
|
|||||||
@@ -168,6 +168,13 @@
|
|||||||
if (!D.groupId || !D.postId) {
|
if (!D.groupId || !D.postId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!D.title || !D.text) {
|
||||||
|
proxy.$message({
|
||||||
|
message: 'Title and text are required',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
groupId: D.groupId,
|
groupId: D.groupId,
|
||||||
postId: D.postId,
|
postId: D.postId,
|
||||||
@@ -192,6 +199,13 @@
|
|||||||
}
|
}
|
||||||
function createGroupPost() {
|
function createGroupPost() {
|
||||||
const D = groupPostEditDialog.value;
|
const D = groupPostEditDialog.value;
|
||||||
|
if (!D.title || !D.text) {
|
||||||
|
proxy.$message({
|
||||||
|
message: 'Title and text are required',
|
||||||
|
type: 'warning'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
const params = {
|
const params = {
|
||||||
groupId: D.groupId,
|
groupId: D.groupId,
|
||||||
title: D.title,
|
title: D.title,
|
||||||
|
|||||||
@@ -105,9 +105,7 @@
|
|||||||
watch(
|
watch(
|
||||||
() => hideUnfriends.value,
|
() => hideUnfriends.value,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
if (newValue) {
|
|
||||||
friendLogTable.value.filters[2].value = newValue;
|
friendLogTable.value.filters[2].value = newValue;
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user