Browse Source

fix: some elements for the failing tests

pull/25729/head
sumeyye 3 months 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', this.isLoading() ? 'fa fa-spinner fa-spin' : this.iconClass() || 'd-none',
); );
setLoading(value: boolean): void {
this.modalLoading.set(value);
}
ngOnInit() { ngOnInit() {
const attributes = this.attributes(); const attributes = this.attributes();
if (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 containerClass = input('abp-loader-bar');
readonly color = input('#77b6ff'); readonly color = input('#77b6ff');
protected readonly isLoading = signal(false); readonly isLoading = signal(false);
protected readonly progressLevel = signal(0); readonly progressLevel = signal(0);
interval = new Subscription(); interval = new Subscription();
timer = 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 targetElementInput = input<HTMLElement | undefined>(undefined, { alias: 'abpLoadingTargetElement' });
readonly delay = input(0, { alias: 'abpLoadingDelay' }); readonly delay = input(0, { alias: 'abpLoadingDelay' });
private targetElement: HTMLElement | undefined; targetElement: HTMLElement | undefined;
componentRef: ComponentRef<LoadingComponent> | null = null; componentRef: ComponentRef<LoadingComponent> | null = null;
rootNode: HTMLDivElement | null = null; rootNode: HTMLDivElement | null = null;

Loading…
Cancel
Save