diff --git a/html/src/app.js b/html/src/app.js index 0ca712aa..8985fa47 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -17207,6 +17207,16 @@ speechSynthesis.getVoices(); }); }; + $app.methods.downloadSearchPage = function () { + this.searchWorldResults.forEach((ref) => { + API.getWorld({ + worldId: ref.id + }).then((args) => { + this.queueCacheDownload(args.ref, 'Search'); + }); + }); + }; + $app.data.downloadProgress = 0; $app.data.downloadInProgress = false; $app.data.downloadIsProcessing = false; diff --git a/html/src/index.pug b/html/src/index.pug index f9c63489..616cdb6f 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -377,6 +377,7 @@ html 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 + el-button(v-if="searchWorldResults.length > 0" @click="downloadSearchPage" icon="el-icon-download" size="small" style="margin-left:10px") Download All .x-friend-list .x-friend-item(v-for="world in searchWorldResults" :key="world.id" @click="showWorldDialog(world.id)") template(v-once)