Browse Source

fix: some elements for the failing tests

pull/25729/head
sumeyye 2 days ago
parent
commit
48f7fc422e
  1. 8
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts
  2. 4
      npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts
  3. 2
      npm/ng-packs/packages/theme-shared/src/lib/directives/loading.directive.ts

8
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -63,10 +63,6 @@ export class ButtonComponent implements OnInit {
this.isLoading() ? 'fa fa-spinner fa-spin' : this.iconClass() || 'd-none',
);
setLoading(value: boolean): void {
this.modalLoading.set(value);
}
ngOnInit() {
const attributes = this.attributes();
if (attributes) {
@ -77,4 +73,8 @@ export class ButtonComponent implements OnInit {
});
}
}
setLoading(value: boolean): void {
this.modalLoading.set(value);
}
}

4
npm/ng-packs/packages/theme-shared/src/lib/components/loader-bar/loader-bar.component.ts

@ -40,8 +40,8 @@ export class LoaderBarComponent implements OnDestroy, OnInit {
readonly containerClass = input('abp-loader-bar');
readonly color = input('#77b6ff');
protected readonly isLoading = signal(false);
protected readonly progressLevel = signal(0);
readonly isLoading = signal(false);
readonly progressLevel = signal(0);
interval = new Subscription();
timer = new Subscription();

2
npm/ng-packs/packages/theme-shared/src/lib/directives/loading.directive.ts

@ -32,7 +32,7 @@ export class LoadingDirective implements OnInit, OnDestroy {
readonly targetElementInput = input<HTMLElement | undefined>(undefined, { alias: 'abpLoadingTargetElement' });
readonly delay = input(0, { alias: 'abpLoadingDelay' });
private targetElement: HTMLElement | undefined;
targetElement: HTMLElement | undefined;
componentRef: ComponentRef<LoadingComponent> | null = null;
rootNode: HTMLDivElement | null = null;

Loading…
Cancel
Save