From f4a4d4ffce099c81e81e07e3fc283d6eb05a14c3 Mon Sep 17 00:00:00 2001 From: Martin Tillmann Date: Thu, 1 Feb 2024 18:17:26 +0100 Subject: [PATCH] Fix export type bug in ExportFeatures.js and exportDialog.pug --- src/Frontend/ExportFeatures.js | 1 + src/views/partials/exportDialog.pug | 2 +- static/app.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Frontend/ExportFeatures.js b/src/Frontend/ExportFeatures.js index 67820c4..dc62cb0 100644 --- a/src/Frontend/ExportFeatures.js +++ b/src/Frontend/ExportFeatures.js @@ -30,6 +30,7 @@ export default { if (type) { this.exportSettings.type = type; } + this.data.ensureUniqueFilenames(); this.exportData = AutoFormat.as(this.exportSettings.type, this.data); diff --git a/src/views/partials/exportDialog.pug b/src/views/partials/exportDialog.pug index ceec3c2..f765895 100644 --- a/src/views/partials/exportDialog.pug +++ b/src/views/partials/exportDialog.pug @@ -48,7 +48,7 @@ div.offcanvas.offcanvas-bottom#exportDialog(x-ref="exportDialog", style="--bs-of | | Apple Chapters li.nav-item - a.nav-link(:class="{active : /^(psc|podlove)/.test(exportSettings.type)}", href="#", @click.stop.prevent="updateExportContent('podlove')") + a.nav-link(:class="{active : /^(psc|podlove)/.test(exportSettings.type)}", href="#", @click.stop.prevent="updateExportContent('psc')") i.bi.bi-filetype-xml | | Podlove diff --git a/static/app.js b/static/app.js index b31d1b8..ff9f8d3 100644 --- a/static/app.js +++ b/static/app.js @@ -20727,6 +20727,7 @@ ${expression ? 'Expression: "' + expression + '"\n\n' : ""}`, el); if (type) { this.exportSettings.type = type; } + this.data.ensureUniqueFilenames(); this.exportData = AutoFormat.as(this.exportSettings.type, this.data);