Skip to content

Commit

Permalink
Explain that files have to be deleted manually (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
robbevp authored Aug 22, 2021
1 parent e7175e0 commit d1b3a2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/TrackActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d1b3a2f

Please sign in to comment.