File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/main/js/components/dialogs Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -151,11 +151,14 @@ Dialog.prototype.checkInput = function () {
151151Dialog . 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 ) {
You can’t perform that action at this time.
0 commit comments