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.$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({});
};