|
1667 |
var role = values['server/role']; |
1667 |
var role = values['server/role']; |
1668 |
return this.uidIsUsable(uid, role).then( |
1668 |
return this.uidIsUsable(uid, role).then( |
1669 |
function(data) { return true; }, // callback; uid is available, just continue |
1669 |
function(data) { return true; }, // callback; uid is available, just continue |
1670 |
this.getConfirmationToContinueWithDuplicateHostname.bind(null, hostname) // errback |
1670 |
this.getConfirmationToContinueWithDuplicateHostname(hostname) |
1671 |
); |
1671 |
); |
1672 |
}, |
1672 |
}, |
1673 |
|
1673 |
|
|
1689 |
hostname |
1689 |
hostname |
1690 |
), [{ |
1690 |
), [{ |
1691 |
label: _('Adjust settings'), |
1691 |
label: _('Adjust settings'), |
1692 |
name: 'stay' |
1692 |
name: 'adjust_settings' |
1693 |
}, { |
1693 |
}, { |
1694 |
label: _('Continue with duplicate hostname'), |
1694 |
label: _('Continue with duplicate hostname'), |
1695 |
'default': true, |
1695 |
'default': true, |
1696 |
name: 'continue' |
1696 |
name: 'continue' |
1697 |
}], _('Warning')).then( |
1697 |
}], _('Warning')).then(lang.hitch(this, function(choice) { |
1698 |
function(choice) { |
1698 |
if (choice == 'continue') { return choice; } |
1699 |
if (choice == 'continue') { return choice; } |
1699 |
this.selectChild(this._pages.role) |
1700 |
throw choice; |
1700 |
})); |
1701 |
} |
|
|
1702 |
); |
1703 |
}, |
1701 |
}, |
1704 |
|
1702 |
|
1705 |
_updateAppGallery: function() { |
1703 |
_updateAppGallery: function() { |