in gr-serviceuser/gr-serviceuser-detail.js [100:127]
_loadServiceUser() {
if (!this._serviceUserId) { return; }
const promises = [];
promises.push(this._getPluginConfig());
promises.push(this._getServiceUser());
Promise.all(promises).then(() => {
this.$.sshEditor.loadData(this._restApi, this._serviceUser);
this.$.httpPass.loadData(this._restApi, this._serviceUser);
this.dispatchEvent(
new CustomEvent(
'title-change',
{
detail: {title: this._serviceUser.name},
bubbles: true,
composed: true,
}
)
);
this._computeStatusButtonText();
this._loading = false;
this._newFullName = this._serviceUser.name;
this._newEmail = this._serviceUser.email;
});
}