From e8b1da9250de405b92ba3a2ab1bb02a35a010e95 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 3 Dec 2020 06:01:03 +1300 Subject: [PATCH] Game Log immediately show profile 2 --- html/src/app.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index dbc6d6ff..3da8088e 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -4650,14 +4650,16 @@ import gameLogService from './service/gamelog.js' } } this.searchText = name; - this.$refs.searchTab.currentName = '0'; - await this.search(); - for (var ref of API.cachedUsers.values()) { + await this.searchUser(); + for (var ref of this.searchUserResults) { if (ref.displayName === name) { + this.searchText = ''; + this.clearSearch(); this.showUserDialog(ref.id); return; } } + this.$refs.searchTab.currentName = '0'; this.$refs.menu.activeIndex = 'search'; }; @@ -4695,8 +4697,8 @@ import gameLogService from './service/gamelog.js' this.searchAvatarResults = []; }; - $app.methods.search = async function () { - await this.searchUser(); + $app.methods.search = function () { + this.searchUser(); this.searchWorld({}); };