World search community labs tick box

This commit is contained in:
Natsumi
2021-06-01 08:54:06 +12:00
parent 447cef9c83
commit 4b9a80718a
2 changed files with 5 additions and 2 deletions

View File

@@ -6256,6 +6256,8 @@ speechSynthesis.getVoices();
});
};
$app.data.searchWorldLabs = false;
$app.methods.searchWorld = function (ref) {
this.searchWorldOption = '';
var params = {
@@ -6309,8 +6311,8 @@ speechSynthesis.getVoices();
params.user = 'me';
params.releaseStatus = 'all';
}
if (ref.tag) {
params.tag = ref.tag;
if (!this.searchWorldLabs) {
params.tag = 'system_approved';
}
// TODO: option.platform
this.searchWorldParams = params;

View File

@@ -218,6 +218,7 @@ html
el-button(size="small") Search by Category #[i.el-icon-arrow-down.el-icon--right]
el-dropdown-menu(#default="dropdown")
el-dropdown-item(v-for="row in API.cachedConfig.dynamicWorldRows" :key="row.index" v-text="row.name" :command="row")
el-checkbox(v-model="searchWorldLabs" style="margin-left:10px") Include community labs
.x-friend-list
.x-friend-item(v-for="world in searchWorldResults" :key="world.id" @click="showWorldDialog(world.id)")
template(v-once)