mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-14 04:13:52 +02:00
revert allDateOfActivity reactive change back to ref
This commit is contained in:
@@ -94,9 +94,6 @@
|
||||
}
|
||||
|
||||
async function addNote(userId, note) {
|
||||
if (userDialog.value.id === userId) {
|
||||
userDialog.value.noteSaving = true;
|
||||
}
|
||||
const args = await miscRequest.saveNote({
|
||||
targetUserId: userId,
|
||||
note
|
||||
@@ -115,7 +112,6 @@
|
||||
}
|
||||
if (targetUserId === userDialog.value.id) {
|
||||
if (_note === args.params.note) {
|
||||
userDialog.value.noteSaving = false;
|
||||
userDialog.value.note = _note;
|
||||
} else {
|
||||
// response is cached sadge :<
|
||||
|
||||
@@ -182,7 +182,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
friend: {},
|
||||
isFriend: false,
|
||||
note: '',
|
||||
noteSaving: false,
|
||||
incomingRequest: false,
|
||||
outgoingRequest: false,
|
||||
isBlock: false,
|
||||
@@ -670,7 +669,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
if (D.visible && D.id === ref.id) {
|
||||
D.ref = ref;
|
||||
D.note = String(ref.note || '');
|
||||
D.noteSaving = false;
|
||||
D.incomingRequest = false;
|
||||
D.outgoingRequest = false;
|
||||
if (D.ref.friendRequestStatus === 'incoming') {
|
||||
@@ -715,7 +713,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
D.treeData = [];
|
||||
D.memo = '';
|
||||
D.note = '';
|
||||
D.noteSaving = false;
|
||||
getUserMemo(userId).then((memo) => {
|
||||
if (memo.userId === userId) {
|
||||
D.memo = memo.memo;
|
||||
|
||||
@@ -8,7 +8,7 @@ import { getWorldName } from '../../../shared/utils';
|
||||
export function useInstanceActivityData() {
|
||||
const activityData = ref([]);
|
||||
const activityDetailData = ref([]);
|
||||
let allDateOfActivity = reactive(new Set());
|
||||
const allDateOfActivity = ref(new Set());
|
||||
const worldNameArray = ref([]);
|
||||
|
||||
async function getAllDateOfActivity() {
|
||||
@@ -24,7 +24,7 @@ export function useInstanceActivityData() {
|
||||
uniqueDates.add(formattedDate);
|
||||
}
|
||||
|
||||
allDateOfActivity = reactive(uniqueDates);
|
||||
allDateOfActivity.value = reactive(uniqueDates);
|
||||
}
|
||||
|
||||
async function getWorldNameData() {
|
||||
|
||||
Reference in New Issue
Block a user