_handleSavePreferences()

in gr-serviceuser/gr-serviceuser-detail.js [348:370]


  _handleSavePreferences() {
    const promises = [];
    this._changingPrefs = true;

    if (this._newFullName) {
      promises.push(this._applyNewFullName());
    }

    if (this._newEmail) {
      promises.push(this._applyNewEmail(this._newEmail));
    }

    if (this._newOwner) {
      promises.push(this._applyNewOwner(this._newOwner));
    }

    Promise.all(promises).then(() => {
      this._changingPrefs = false;
      this._prefsChanged = false;
      this._ownerChangeWarning = '';
      this._loadServiceUser();
    });
  }