Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setTimeout(() => this.validateBtnState = ClrLoadingState.SUCCESS, 1500);
}
.subscribe(response => {
this.close();
this.msgHandler.showSuccess("Update Success");
this.notify.emit();
this.saveBtnState = ClrLoadingState.SUCCESS;
}, error => {
this.inlineAlert.showInlineError(error);
.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;
private async handleLoginSuccess() {
this.loginBtnState = ClrLoadingState.SUCCESS;
await this.router.navigate(['/dashboard']);
}
this.auth.validateToken().subscribe(res => {
this.validateLoading = res.error
? ClrLoadingState.ERROR
: ClrLoadingState.SUCCESS;
});
}
fixture.whenStable().then(() => {
expect(component.checkBtnState).toBe(ClrLoadingState.SUCCESS);
});
}));
setTimeout(() => {
this.disabledState = ClrLoadingState.SUCCESS;
this.disabledStateDisabled = true;
}, 1500);
}
this.auth.signIn(this.username, this.password).subscribe(res => {
this.signInLoading = res.error
? ClrLoadingState.ERROR
: ClrLoadingState.SUCCESS;
});
}
.subscribe(response => {
this.close();
this.msgHandler.showSuccess('Update Success');
this.getScanner(true);
this.saveBtnState = ClrLoadingState.SUCCESS;
}, error => {
this.inlineAlert.showInlineError(error);
response => {
if (this.isModify) {
this.inlineAlert.showInlineSuccess({
message: "WEBHOOK.TEST_ENDPOINT_SUCCESS"
});
} else {
this.checkBtnState = ClrLoadingState.SUCCESS;
}
},
error => {