How to change Parameters of Dialog Login?

I’m trying to change the parameters of the dialog login but can’t get it working. Here’s an example:

var loginDialog = app.dialog.login('Sign in with your email and password.', '', function() {
loginDialog.params.buttons[1].text = 'Sign In';


The text for the OK button does not change. Is there a method I need to call to update the dialog?


You can change it globally on app initialization

or create a dialog manually and set value Sign In to property text on button parameters

After dialog has been created you can operate with DOM,

// change text of 2nd button