Skip to content

Commit bd7f977

Browse files
committed
Update translations to use .next
1 parent bc9f83a commit bd7f977

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/table/table.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Output,
66
EventEmitter
77
} from "@angular/core";
8-
import { Subscription, fromEvent, BehaviorSubject } from "rxjs";
8+
import { Subscription, fromEvent } from "rxjs";
99

1010
import { TableModel } from "./table.module";
1111
import { TableHeaderItem } from "./table-header-item.class";
@@ -529,19 +529,19 @@ export class Table {
529529
@Input()
530530
set translations (value) {
531531
if (value.FILTER) {
532-
this.filterTitle = new BehaviorSubject(value.FILTER);
532+
this.filterTitle.next(value.FILTER);
533533
}
534534
if (value.END_OF_DATA) {
535-
this.endOfDataText = new BehaviorSubject(value.END_OF_DATA);
535+
this.endOfDataText.next(value.END_OF_DATA);
536536
}
537537
if (value.SCROLL_TOP) {
538-
this.scrollTopText = new BehaviorSubject(value.SCROLL_TOP);
538+
this.scrollTopText.next(value.SCROLL_TOP);
539539
}
540540
if (value.CHECKBOX_HEADER) {
541-
this.checkboxHeaderLabel = new BehaviorSubject(value.CHECKBOX_HEADER);
541+
this.checkboxHeaderLabel.next(value.CHECKBOX_HEADER);
542542
}
543543
if (value.CHECKBOX_ROW) {
544-
this.checkboxRowLabel = new BehaviorSubject(value.CHECKBOX_ROW);
544+
this.checkboxRowLabel.next(value.CHECKBOX_ROW);
545545
}
546546
}
547547

0 commit comments

Comments
 (0)