diff --git a/src/components/TrackActions.vue b/src/components/TrackActions.vue index b055162f..7b5fdedc 100644 --- a/src/components/TrackActions.vue +++ b/src/components/TrackActions.vue @@ -194,7 +194,11 @@ export default { methods: { ...mapActions("tracks", ["destroy", "update"]), deleteTrack: function () { - if (confirm(this.$t("common.are-you-sure"))) { + let message = this.$t("common.are-you-sure"); + if (this.track.length) { + message += ` ${this.$t("music.track.delete-file-explanation")}`; + } + if (confirm(message)) { this.destroy(this.track.id); } }, diff --git a/src/locales/en.json b/src/locales/en.json index 769cbb53..797ed5a2 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -305,6 +305,7 @@ "bitrate": "Bitrate", "bit_depth": "Bit depth", "delete": "Delete track", + "delete-file-explanation": "Know that you have to remove the audio file as well. Otherwise this track will show up again on the next rescan.", "edit": "Edit track", "empty": "This track does not have audio.", "file": "Audio file", diff --git a/src/locales/nl.json b/src/locales/nl.json index 4bcf0c14..d2e6d091 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -301,6 +301,7 @@ "bitrate": "Bitrate", "bit_depth": "Bit depth", "delete": "Verwijder nummer", + "delete-file-explanation": "Weet dat je het audio bestand ook moet verwijderen. Anders duikt het nummer weer op bij de volgende scan.", "edit": "Pas nummer aan", "empty": "Dit nummer heeft geen audio.", "file": "Audiobestand",