This commit is contained in:
Tommy Mikkelsen 2022-07-22 23:50:54 +02:00
parent 7e10e5cd76
commit 0fce17326b
3 changed files with 9 additions and 5 deletions

View file

@ -238,7 +238,8 @@
"Name": "@:Modules.ET.Name Settings",
"Note": "Note: * Click here for general settings regarding export *",
"Return": "Return to @:Modules.ET.Name",
"NoTimeStamp": "Don't add a timestamp to export file name"
"NoTimeStamp": "Don't add a timestamp to export file name",
"NoItemRange": "Don't add item range to export file name"
},
"LevelInfo": "Export level determines which data are going to be exported.",
"SelectLevel": "Select level",

View file

@ -74,7 +74,8 @@
{ text: i18n.t('Modules.ET.Settings.SortTitleNull'), value: 'SortTitleNull' },
{ text: i18n.t('Modules.ET.Settings.suggestedFileNoExtra'), value: 'suggestedFileNoExtra' },
{ text: i18n.t('Modules.ET.Settings.suggestedUseOrigenTitle'), value: 'suggestedUseOrigenTitle' },
{ text: i18n.t('Modules.ET.Settings.NoTimeStamp'), value: 'NoTimeStamp' }
{ text: i18n.t('Modules.ET.Settings.NoTimeStamp'), value: 'NoTimeStamp' },
{ text: i18n.t('Modules.ET.Settings.NoItemRange'), value: 'NoItemRange' }
],
SelectedMoviesIDOptions: ['imdb', 'tmdb'],
SelectedMoviesID: '',
@ -91,7 +92,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"];
const cbItems = ["ExpCSV","ExpXLSX", "OrgTitleNull", "SortTitleNull", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange"];
for(let i = 0; i < cbItems.length; i++){
if (wtconfig.get("ET." + cbItems[i], false)){
this.cbSelected.push(cbItems[i]);
@ -104,7 +105,7 @@
},
filterTable(){
this.$nextTick(()=>{console.log(this.cbSelected);})
for( var cbItem of ["ExpCSV","ExpXLSX","OrgTitleNull", "SortTitleNull", "AutoXLSCol", "AutoXLSRow", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp"]){
for( var cbItem of ["ExpCSV","ExpXLSX","OrgTitleNull", "SortTitleNull", "AutoXLSCol", "AutoXLSRow", "suggestedFileNoExtra", "suggestedUseOrigenTitle", "NoTimeStamp", "NoItemRange"]){
wtconfig.set("ET." + cbItem, (this.cbSelected.includes(cbItem)))
}
},

View file

@ -1567,7 +1567,9 @@ const etHelper = new class ETHELPER {
arrFile.push(this.Settings.fileMajor);
arrFile.push(this.Settings.fileMinor);
arrFile.push(this.Settings.levelName);
arrFile.push('Item ' + this.Settings.startItem + '-' + this.Settings.endItem);
if (!wtconfig.get('ET.NoItemRange', false)){
arrFile.push('Item ' + this.Settings.startItem + '-' + this.Settings.endItem);
}
if (!wtconfig.get('ET.NoTimeStamp', false)){
arrFile.push(timeStamp);
}