Skip to content

Commit f29e46f

Browse files
committed
lint fix
1 parent 824ef7f commit f29e46f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/main/js/components/dialogs/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,14 @@ Dialog.prototype.checkInput = function () {
151151
Dialog.prototype.appendButtons = function () {
152152
const buttons = createElementFromHtml(`<div
153153
class="jenkins-buttons-row jenkins-buttons-row--equal-width jenkins-dialog__buttons">
154-
<button data-id="ok" type="${this.options.submitButton ? "submit" : "button"
155-
}" class="jenkins-button jenkins-button--primary ${_typeClassMap[this.options.type]
156-
}">${this.options.okText}</button>
157-
<button data-id="cancel" class="jenkins-button">${this.options.cancelText
158-
}</button>
154+
<button data-id="ok" type="${
155+
this.options.submitButton ? "submit" : "button"
156+
}" class="jenkins-button jenkins-button--primary ${
157+
_typeClassMap[this.options.type]
158+
}">${this.options.okText}</button>
159+
<button data-id="cancel" class="jenkins-button">${
160+
this.options.cancelText
161+
}</button>
159162
</div>`);
160163

161164
if (this.dialogType === "form") {
@@ -281,7 +284,7 @@ function init() {
281284
dialog
282285
.show()
283286
.then()
284-
.catch(() => { });
287+
.catch(() => {});
285288
},
286289

287290
alert: function (title, options) {
@@ -294,7 +297,7 @@ function init() {
294297
dialog
295298
.show()
296299
.then()
297-
.catch(() => { });
300+
.catch(() => {});
298301
},
299302

300303
confirm: function (title, options) {

0 commit comments

Comments
 (0)