This commit is contained in:
Natsumi
2025-08-23 07:42:13 +12:00
parent c7dcd0a3b0
commit af6848e409
3 changed files with 24 additions and 3 deletions

View File

@@ -112,6 +112,7 @@
import { groupRequest } from '../../../api';
import { useGroupStore } from '../../../stores';
import GroupCalendarEventCard from './GroupCalendarEventCard.vue';
import { replaceBioSymbols } from '../../../shared/utils';
const { cachedGroups } = storeToRefs(useGroupStore());
const { showGroupDialog } = useGroupStore();
@@ -283,6 +284,10 @@
async function getCalendarData() {
try {
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;
} catch (error) {
console.error('Error fetching calendars:', error);
@@ -292,6 +297,10 @@
async function getFollowingCalendarData() {
try {
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;
} catch (error) {
console.error('Error fetching following calendars:', error);

View File

@@ -168,6 +168,13 @@
if (!D.groupId || !D.postId) {
return;
}
if (!D.title || !D.text) {
proxy.$message({
message: 'Title and text are required',
type: 'warning'
});
return;
}
const params = {
groupId: D.groupId,
postId: D.postId,
@@ -192,6 +199,13 @@
}
function createGroupPost() {
const D = groupPostEditDialog.value;
if (!D.title || !D.text) {
proxy.$message({
message: 'Title and text are required',
type: 'warning'
});
return;
}
const params = {
groupId: D.groupId,
title: D.title,

View File

@@ -105,9 +105,7 @@
watch(
() => hideUnfriends.value,
(newValue) => {
if (newValue) {
friendLogTable.value.filters[2].value = newValue;
}
friendLogTable.value.filters[2].value = newValue;
},
{ immediate: true }
);