From 47f2526a8b91246797d1fd1975cf985d95c8c4c5 Mon Sep 17 00:00:00 2001 From: Tommy Mikkelsen Date: Mon, 1 Aug 2022 01:32:07 +0200 Subject: [PATCH] Missed tree option setting in ET --- public/locales/en.json | 3 ++- src/components/modules/ExportTools/Settings/settings.vue | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/locales/en.json b/public/locales/en.json index 057e8fc..5219030 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -206,12 +206,13 @@ "ET": { "Description": "@:Modules.ET.Name allows you to export detail information about the media in your libraries", "Name": "ExportTools", - "ExportPostersArts": "Posters and Arts", + "ExportPostersArts": "Posters and Art", "ExportPostersArtsTree": "tree", "ExportPostersArtsFlat": "flat", "ErrorServer": "No server", "Settings": { "ArtPostersOrigen": "Export Art and Posters in original size", + "ExportPostersArtsTree": "Export Art and Posters in a file tree", "Settings": "Settings", "Description": "Here you can define the settings for @:Modules.ET.Name", "ArraySep": "Delimiter for multiple info in same field", diff --git a/src/components/modules/ExportTools/Settings/settings.vue b/src/components/modules/ExportTools/Settings/settings.vue index 361fb58..21213c0 100644 --- a/src/components/modules/ExportTools/Settings/settings.vue +++ b/src/components/modules/ExportTools/Settings/settings.vue @@ -71,6 +71,7 @@ cbSelected: [], cbOptions: [ { text: i18n.t('Modules.ET.Settings.ArtPostersOrigen'), value: 'ArtPostersOrigen' }, + { text: i18n.t('Modules.ET.Settings.ExportPostersArtsTree'), value: 'ExportPostersArtsTree' }, { text: i18n.t('Modules.ET.Settings.ExportToCSV'), value: 'ExpCSV' }, { text: i18n.t('Modules.ET.Settings.ExportToExcel'), value: 'ExpXLSX', disabled: true }, { text: i18n.t('Modules.ET.Settings.OrgTitleNull'), value: 'OrgTitleNull' }, @@ -95,7 +96,7 @@ dialog.ShowMsg( i18n.t("Modules.ET.Name"), i18n.t("Common.Ok"), i18n.t("Common.AppName"), 'For this version, export to XLSX is currently disabled', 'info'); }, getDefaults(){ - const cbItems = ["ExpCSV","ExpXLSX", "OrgTitleNull", "SortTitleNull", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange", "ArtPostersOrigen"]; + const cbItems = ["ExpCSV","ExpXLSX", "OrgTitleNull", "SortTitleNull", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange", "ArtPostersOrigen", "ExportPostersArtsTree"]; for(let i = 0; i < cbItems.length; i++){ if (wtconfig.get("ET." + cbItems[i], false)){ this.cbSelected.push(cbItems[i]); @@ -110,7 +111,7 @@ }, filterTable(){ this.$nextTick(()=>{console.log(this.cbSelected);}) - for( var cbItem of ["ExpCSV","ExpXLSX","OrgTitleNull", "SortTitleNull", "AutoXLSCol", "AutoXLSRow", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange", "ArtPostersOrigen"]){ + for( var cbItem of ["ExpCSV","ExpXLSX","OrgTitleNull", "SortTitleNull", "AutoXLSCol", "AutoXLSRow", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange", "ArtPostersOrigen", "ExportPostersArtsTree"]){ wtconfig.set("ET." + cbItem, (this.cbSelected.includes(cbItem))) } this.PosterDimDisabled = this.cbSelected.includes('ArtPostersOrigen');