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