mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 02:33:48 +02:00
refactor: dialogs (#1224)
* refactor: dialogs * fix: storeAvatarImage * FriendLog.vue * FriendLog.vue * FriendLog.vue * GameLog.vue * fix: next day button jumping to the wrong date * sync master * fix: launchGame * Notification.vue * Feed.vue * Search.vue * Profile.vue * PlayerList.vue * Login.vue * utils * update dialog * del gameLog.pug * fix * fix: group role cannot be displayed currently * fix: "Hide Friends in Same Instance" hides players in unrelated private instances (#1210) * fix * fix: "Hide Friends in Same Instance" does not work when "Split Favorite Friends" is enabled * fix Notification.vue message * fix: deleteFavoriteNoConfirm * fix: feed status style * fix: infinite loading when deleting note * fix: private players will not be hidden when 'Hide Friends in Same Instance', and 'Hide Friends in Same Instance' will not work when 'Split Favorite Friends'
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import * as workerTimers from 'worker-timers';
|
||||
import { parseLocation } from '../composables/instance/utils';
|
||||
import gameLogService from '../service/gamelog.js';
|
||||
import configRepository from '../service/config.js';
|
||||
import database from '../service/database.js';
|
||||
import { baseClass, $app, API, $t, $utils } from './baseClass.js';
|
||||
import { baseClass, $app, API, $utils } from './baseClass.js';
|
||||
import { userRequest } from '../api';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@@ -80,7 +81,7 @@ export default class extends baseClass {
|
||||
this.lastLocation.location,
|
||||
gameLog.dt
|
||||
);
|
||||
var worldName = this.replaceBioSymbols(gameLog.worldName);
|
||||
var worldName = $utils.replaceBioSymbols(gameLog.worldName);
|
||||
if (this.isGameRunning) {
|
||||
this.lastLocationReset(gameLog.dt);
|
||||
this.clearNowPlaying();
|
||||
@@ -100,7 +101,7 @@ export default class extends baseClass {
|
||||
this.applyGroupDialogInstances();
|
||||
}
|
||||
this.addInstanceJoinHistory(gameLog.location, gameLog.dt);
|
||||
var L = $utils.parseLocation(gameLog.location);
|
||||
var L = parseLocation(gameLog.location);
|
||||
var entry = {
|
||||
created_at: gameLog.dt,
|
||||
type: 'Location',
|
||||
@@ -789,7 +790,7 @@ export default class extends baseClass {
|
||||
var videoPos = Number(data[1]);
|
||||
var videoLength = Number(data[2]);
|
||||
var displayName = data[3];
|
||||
var videoName = this.replaceBioSymbols(data[4]);
|
||||
var videoName = $utils.replaceBioSymbols(data[4]);
|
||||
var videoUrl = videoName;
|
||||
var videoId = 'LSMedia';
|
||||
if (videoUrl === this.nowPlaying.url) {
|
||||
@@ -981,29 +982,6 @@ export default class extends baseClass {
|
||||
this.addGameLogEntry(gameLog, this.lastLocation.location);
|
||||
},
|
||||
|
||||
deleteGameLogEntryPrompt(row) {
|
||||
this.$confirm('Continue? Delete Log', 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'info',
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this.deleteGameLogEntry(row);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
deleteGameLogEntry(row) {
|
||||
$app.removeFromArray(this.gameLogTable.data, row);
|
||||
database.deleteGameLogEntry(row);
|
||||
console.log(row);
|
||||
database.getGamelogDatabase().then((data) => {
|
||||
this.gameLogSessionTable = data;
|
||||
this.updateSharedFeed(true);
|
||||
});
|
||||
},
|
||||
|
||||
gameLogSearch(row) {
|
||||
var value = this.gameLogTable.search.toUpperCase();
|
||||
if (!value) {
|
||||
|
||||
Reference in New Issue
Block a user