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)}`)}
-
${$._('deltrack')}
+ return `
${$._('deltrack')}
+
${$._('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)}`)}
-
${$._('deluser')}
+ deleteButton = `
${$._('deluser')}
+
${$._('editinguser', `${uUtils.htmlEncode(this.user.login)}`)}
`; fields = `