mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-11 00:25:12 +00:00
fix(console): infinite scrolling for org context (#7965)
* add scroll directive, iterative loading * sorting column * fix: filter * batch of 100, max height 350px * cleanup
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Directive, ElementRef, EventEmitter, HostListener, Output } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
standalone: true,
|
||||
selector: '[cnslScrollable]',
|
||||
})
|
||||
export class ScrollableDirective {
|
||||
@@ -15,7 +16,6 @@ export class ScrollableDirective {
|
||||
const top = event.target.scrollTop;
|
||||
const height = this.el.nativeElement.scrollHeight;
|
||||
const offset = this.el.nativeElement.offsetHeight;
|
||||
|
||||
// emit bottom event
|
||||
if (top > height - offset - 1) {
|
||||
this.scrollPosition.emit('bottom');
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { ScrollableDirective } from './scrollable.directive';
|
||||
|
||||
@NgModule({
|
||||
declarations: [ScrollableDirective],
|
||||
imports: [CommonModule],
|
||||
exports: [ScrollableDirective],
|
||||
})
|
||||
export class ScrollableModule {}
|
||||
Reference in New Issue
Block a user