From 7749566835bbd4696fae8cb56e699b06b96f0d88 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 16 Feb 2020 20:41:36 +0100 Subject: [PATCH] Fix delete button position --- js/src/positiondialogmodel.js | 4 ++-- js/src/trackdialogmodel.js | 4 ++-- js/src/userdialogmodel.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/src/positiondialogmodel.js b/js/src/positiondialogmodel.js index a3d8d45..20614ac 100644 --- a/js/src/positiondialogmodel.js +++ b/js/src/positiondialogmodel.js @@ -58,8 +58,8 @@ export default class PositionDialogModel extends ViewModel { * @return {string} */ getHtml() { - return `
${$._('editingposition', this.positionIndex + 1, `${uUtils.htmlEncode(this.position.trackname)}`)}
-
${$._('delposition')}
+ return `
${$._('delposition')}
+
${$._('editingposition', this.positionIndex + 1, `${uUtils.htmlEncode(this.position.trackname)}`)}

diff --git a/js/src/trackdialogmodel.js b/js/src/trackdialogmodel.js index 8b00cc8..73ecd71 100644 --- a/js/src/trackdialogmodel.js +++ b/js/src/trackdialogmodel.js @@ -52,8 +52,8 @@ export default class TrackDialogModel extends ViewModel { * @return {string} */ getHtml() { - return `
${$._('editingtrack', `${uUtils.htmlEncode(this.track.name)}`)}
- + return ` +
${$._('editingtrack', `${uUtils.htmlEncode(this.track.name)}`)}
diff --git a/js/src/userdialogmodel.js b/js/src/userdialogmodel.js index 5fda980..ce0b617 100644 --- a/js/src/userdialogmodel.js +++ b/js/src/userdialogmodel.js @@ -138,8 +138,8 @@ export default class UserDialogModel extends ViewModel { break; case 'edit': observer = 'onUserUpdate'; - deleteButton = `
${$._('editinguser', `${uUtils.htmlEncode(this.user.login)}`)}
- + deleteButton = ` +
${$._('editinguser', `${uUtils.htmlEncode(this.user.login)}`)}
`; fields = `