Пример #1
0
 .then(({ data }) => {
   if (clientConfig.mailSettingsMissing) {
     notification.warning('The mail server is not configured.');
     return data.reset_link;
   }
   notification.success('Password reset email sent.');
 })
Пример #2
0
 .then(({ data }) => {
   if (clientConfig.mailSettingsMissing) {
     notification.warning('The mail server is not configured.');
     return data.invite_link;
   }
   notification.success('Invitation sent.');
 })
Пример #3
0
    $http.post('api/settings/organization', { [key]: this.settings[key] }).then((response) => {
      this.settings = response.data.settings;
      notification.success('Settings changes saved.');

      if (this.disablePasswordLoginToggle() && this.settings.auth_password_login_enabled === false) {
        this.settings.auth_password_login_enabled = true;
        this.update('auth_password_login_enabled');
      }
    }).catch(() => {
Пример #4
0
 (updatedQuery) => {
   notification.success(options.successMessage);
   $scope.query.version = updatedQuery.version;
 },
Пример #5
0
 .then(() => {
   this.close();
   notification.success('Widget added to dashboard.');
 })
Пример #6
0
 .then(({ data }) => {
   notification.success('The API Key has been updated.');
   return data.api_key;
 })
Пример #7
0
 .then((data) => {
   notification.success(`User ${userName} is now enabled.`);
   user.is_disabled = false;
   user.profile_image_url = data.data.profile_image_url;
   return data;
 })
Пример #8
0
 () => {
   $location.path('/alerts');
   notification.success('Alert deleted.');
 },
Пример #9
0
 (alert) => {
   notification.success('Saved.');
   if (this.alertId === 'new') {
     $location.path(`/alerts/${alert.id}`).replace();
   }
 },