Game Log immediately show profile 2

This commit is contained in:
Natsumi
2020-12-03 06:01:03 +13:00
committed by pypy
parent 6bcd9a73fd
commit e8b1da9250

View File

@@ -4650,14 +4650,16 @@ import gameLogService from './service/gamelog.js'
} }
} }
this.searchText = name; this.searchText = name;
this.$refs.searchTab.currentName = '0'; await this.searchUser();
await this.search(); for (var ref of this.searchUserResults) {
for (var ref of API.cachedUsers.values()) {
if (ref.displayName === name) { if (ref.displayName === name) {
this.searchText = '';
this.clearSearch();
this.showUserDialog(ref.id); this.showUserDialog(ref.id);
return; return;
} }
} }
this.$refs.searchTab.currentName = '0';
this.$refs.menu.activeIndex = 'search'; this.$refs.menu.activeIndex = 'search';
}; };
@@ -4695,8 +4697,8 @@ import gameLogService from './service/gamelog.js'
this.searchAvatarResults = []; this.searchAvatarResults = [];
}; };
$app.methods.search = async function () { $app.methods.search = function () {
await this.searchUser(); this.searchUser();
this.searchWorld({}); this.searchWorld({});
}; };