How to use the @clr/angular.ClrLoadingState.SUCCESS 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 vmware / clarity / latest / src / app / documentation / demos / buttons / button-loading.ts View on Github external
        setTimeout(() => this.validateBtnState = ClrLoadingState.SUCCESS, 1500);
    }
github goharbor / harbor / src / portal / src / app / config / scanner / new-scanner-modal / new-scanner-modal.component.ts View on Github external
.subscribe(response => {
                this.close();
                this.msgHandler.showSuccess("Update Success");
                this.notify.emit();
                this.saveBtnState = ClrLoadingState.SUCCESS;
            }, error => {
                this.inlineAlert.showInlineError(error);
github goharbor / harbor / src / portal / src / lib / components / vulnerability-scanning / result-grid.component.ts View on Github external
.subscribe(response => {
                if (response && "{}" !== JSON.stringify(response) && !response.disabled
                    && response.health === "healthy") {
                    this.scanBtnState = ClrLoadingState.SUCCESS;
                    this.hasEnabledScanner = true;
                } else {
                    this.scanBtnState = ClrLoadingState.ERROR;
                }
            }, error => {
                this.scanBtnState = ClrLoadingState.ERROR;
github ForetagInc / fullstack-ts-boilerplate / libs / login / src / lib / login.component.ts View on Github external
private async handleLoginSuccess() {
    this.loginBtnState = ClrLoadingState.SUCCESS;

    await this.router.navigate(['/dashboard']);
  }
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 goharbor / harbor / src / portal / src / app / config / scanner / new-scanner-modal / new-scanner-modal.component.spec.ts View on Github external
fixture.whenStable().then(() => {
       expect(component.checkBtnState).toBe(ClrLoadingState.SUCCESS);
    });
  }));
github vmware / clarity / src / dev / src / app / buttons / button-loading.ts View on Github external
setTimeout(() => {
      this.disabledState = ClrLoadingState.SUCCESS;
      this.disabledStateDisabled = true;
    }, 1500);
  }
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 / project / scanner / scanner.component.ts View on Github external
.subscribe(response => {
                this.close();
                this.msgHandler.showSuccess('Update Success');
                this.getScanner(true);
                this.saveBtnState = ClrLoadingState.SUCCESS;
            }, error => {
                this.inlineAlert.showInlineError(error);
github goharbor / harbor / src / portal / src / app / project / webhook / add-webhook-form / add-webhook-form.component.ts View on Github external
response => {
          if (this.isModify) {
            this.inlineAlert.showInlineSuccess({
              message: "WEBHOOK.TEST_ENDPOINT_SUCCESS"
            });
          } else {
            this.checkBtnState = ClrLoadingState.SUCCESS;
          }
        },
        error => {