This commit is contained in:
Tommy Mikkelsen 2022-06-29 01:02:47 +02:00
parent be40666571
commit f1d370e0f0
5 changed files with 189 additions and 163 deletions

View file

@ -201,10 +201,12 @@
"Description": "@:Modules.ET.Name allows you to export detail information about the media in your libraries",
"Name": "ExportTools",
"ErrorServer": "No server",
"ttSettings": "Settings for @:Modules.ET.Name module",
"Settings": {
"Name": "@:Modules.ET.Name Settings",
"Description": "Here you can define the settings for @:Modules.ET.Name",
"Note": "Note: * Click here for general settings regarding export *",
"Return": "Return to @:Modules.ET.Name",
"ArraySep": "Delimiter for multiple info in same field",
"ColumnSep": "Delimiter between columns in CSV file (Use 9 for TAB)",
"TimeOut": "Timeout when requesting info from PMS in sec (Global setting)",
@ -494,8 +496,9 @@
"Name": "Find Media",
"Description": "@:Modules.PMS.FindMedia.Name module allows you search both filesystem and Plex database to locate medias missing from either of them",
"RunTask": "Run",
"TTSelectLibrary": "Select library to check for missing medias",
"MissingMapTitle": "Missing a mapped path",
"MissingMapDesc": "One or more defined paths for library is not defined. Goto '@:Modules.PMS.LibMapping.Name' to correct",
"MissingMapDesc": "One or more defined paths for library is not defined. Goto '@:Common.Menu.Sidebar.Settings.NavTitle' and select '@:Common.Settings.LibMapping.Name' to correct",
"ttSettings": "Settings for @:Modules.PMS.FindMedia.Name module",
"ScanningFS": "Scanning File System",
"ScanningLib": "Scanning Library",

View file

@ -54,15 +54,8 @@
title: this.$t("Common.Menu.Sidebar.ET.Custom"),
hidden: wtutils.hideMenu('etCustom'),
icon: 'fa fa-cog'
},
{
href: '/export/settings',
title: this.$t("Common.Menu.Sidebar.ET.Settings"),
hidden: wtutils.hideMenu('etSettings'),
icon: 'fa fa-cog'
}
]
},
// Plex.TV
{

View file

@ -1,4 +1,19 @@
<template>
<div>
<!-- Settings button -->
<div class="text-right">
<div class="buttons">
<!-- Buttons -->
<div id="buttons">
<b-button-group id="settings">
<b-tooltip target="settings" triggers="hover">
{{ $t('Modules.ET.ttSettings') }}
</b-tooltip>
<button class="btn btn-outline-success" @click="showSettings"><i class="fa fa-cog"></i></button>
</b-button-group>
</div>
</div>
</div>
<b-container fluid>
<div class="col-lg-10 col-md-12 col-xs-12">
<h3>{{ $t("Modules.ET.Name") }} <br>
@ -114,6 +129,7 @@
</b-modal>
</div>
</b-container>
</div>
</template>
<script>
@ -247,6 +263,10 @@
},
},
methods: {
// Show Settings
showSettings(){
this.$router.push({ name: 'exportsettings' })
},
setItemStartNo: async function(){
// Update settings with new start value
etHelper.Settings.startItem = this.itemStartNo;

View file

@ -6,9 +6,6 @@
<p>{{ $t("Modules.ET.Settings.Description") }}</p>
<b-link id="general" to="/settings/export">{{ $t("Modules.ET.Settings.Note") }} </b-link>
<br>
<b-input-group id="PosterGrp" :prepend="$t('Modules.ET.Settings.Posters_Dimensions')" class="mt-3">
<b-tooltip target="PosterGrp" triggers="hover">
{{ $t('Modules.ET.Settings.Posters_Dimensions_TT') }}
@ -42,6 +39,15 @@
name="SugMovieID">
</b-form-select>
</b-form-group>
<!-- Buttons -->
<div class="buttons">
<!-- Buttons -->
<div id="buttons" class="text-center">
<b-button-group >
<b-button variant="success" class="mr-1" @click="jumpToET"> {{ $t('Modules.ET.Settings.Return') }} </b-button>
</b-button-group>
</div>
</div>
</div>
</b-container>
</template>
@ -77,6 +83,10 @@
};
},
methods: {
// Return to ET
jumpToET(){
this.$router.push({ name: 'export' })
},
showAlert(){
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');
},

View file

@ -24,7 +24,7 @@
<div class="d-flex align-items-center">
<b-form-group id="SelLibGroup" v-bind:label="$t('Modules.ET.optExpType.lblSelectSelection')" label-size="lg" label-class="font-weight-bold pt-0">
<b-tooltip target="SelLibGroup" triggers="hover">
{{ $t('Modules.PMS.LibMapping.TTSelectLibrary') }}
{{ $t('Modules.PMS.FindMedia.TTSelectLibrary') }}
</b-tooltip>
<b-form-select
v-model="selLib"