How to use the @clr/angular.ClrLoadingState.ERROR function in @clr/angular

To help you get started, we’ve selected a few @clr/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MurhafSousli / ngx-wordpress / src / app / auth / auth-page / auth-page.component.ts View on Github external
this.auth.validateToken().subscribe(res => {
      this.validateLoading = res.error
        ? ClrLoadingState.ERROR
        : ClrLoadingState.SUCCESS;
    });
  }
github ForetagInc / fullstack-ts-boilerplate / libs / login / src / lib / login.component.ts View on Github external
private handleLoginError(err: ApolloError) {
    this.loginBtnState = ClrLoadingState.ERROR;

    this.core.handleFormValidationErrors(this.loginForm, err);
  }
github MurhafSousli / ngx-wordpress / src / app / auth / auth-page / auth-page.component.ts View on Github external
this.auth.signIn(this.username, this.password).subscribe(res => {
      this.signInLoading = res.error
        ? ClrLoadingState.ERROR
        : ClrLoadingState.SUCCESS;
    });
  }
github goharbor / harbor / src / portal / src / app / config / scanner / new-scanner-modal / new-scanner-modal.component.ts View on Github external
}, error => {
                this.inlineAlert.showInlineError(error);
                this.saveBtnState = ClrLoadingState.ERROR;
            });
    }
github goharbor / harbor / src / portal / src / app / project / scanner / scanner.component.ts View on Github external
}, error => {
                this.inlineAlert.showInlineError(error);
                this.saveBtnState = ClrLoadingState.ERROR;
            });
    }