[RFE] File Count on Download module page

Fixes #646
This commit is contained in:
Tommy Mikkelsen 2022-12-03 18:14:52 +01:00
parent a27b2ac2cc
commit f8194dfae9
5 changed files with 21 additions and 3 deletions

View file

@ -1,5 +1,16 @@
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log
## V1.2.1 ( NOT RELEASED YET )
**Note**: In this version, the following is disabled:
* Export to xlsx format ([See #331](https://github.com/WebTools-NG/WebTools-NG/issues/331))
* Photo export
**Changes**:
* [#646 File Count on Download module page](https://github.com/WebTools-NG/WebTools-NG/issues/646) (Enhancement)
## V1.2.0 ( 20221203 )
**Note**: In this version, the following is disabled:

2
package-lock.json generated
View file

@ -1,6 +1,6 @@
{
"name": "webtools-ng",
"version": "1.2.0",
"version": "1.2.1",
"lockfileVersion": 2,
"requires": true,
"packages": {

View file

@ -1,7 +1,7 @@
{
"name": "webtools-ng",
"productName": "WebTools-NG",
"version": "1.2.0",
"version": "1.2.1",
"description": "WebTools Next Generation 4 Plex",
"author": "dane22 & CPSO",
"license": "MPL-2.0",

View file

@ -571,6 +571,7 @@
"ttSettings": "Settings for @:Modules.Download.Name module",
"ttServer": "Select the server to download from",
"ttLibrary": "Select the library to download from",
"libCount": "There are {0} Media available for download",
"mediaInfo": {
"title": "Title",
"file": "File",

View file

@ -81,7 +81,9 @@
</template>
</vue-virtual-table>
</b-modal>
<br>
<div class="d-flex justify-content-center flex-nowrap">
<p>{{ $t(`Modules.Download.libCount`, [this.LibCount]) }}</p>
</div>
<div class="d-flex mx-auto">
<div class="buttons d-flex mx-auto"> <!-- Buttons -->
<b-button
@ -128,6 +130,7 @@
selLibrary: "",
selLibrarySize: null,
LibraryGroupDisabled: true,
LibCount: 0,
tableConfig: [
{ prop: 'mediaKey', isHidden: true },
{ prop: 'Key', isHidden: true },
@ -188,6 +191,7 @@
this.$router.push({ name: 'home' });
}
this.getValidServers();
this.LibCount = this.tableData.length;
},
methods: {
// Show Settings
@ -451,6 +455,7 @@
} while ( gotSize == step );
this.pgbarstyle = 'success';
this.$store.commit('UPDATE_VList', this.tableData);
this.LibCount = this.tableData.length;
},
async updateSrvList(){
log.info(`[download.vue] (updateSrvList) - Start getting valid servers`);
@ -538,6 +543,7 @@
watch: {
},
computed: {
}
};
</script>