mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
refactor(views/table): better cleanup
This commit is contained in:
parent
504a19275c
commit
f3350bc8f5
@ -10,11 +10,12 @@ import { renameColumn } from "./bulk_actions";
|
|||||||
export default class TableColumnEditing extends Component {
|
export default class TableColumnEditing extends Component {
|
||||||
|
|
||||||
private attributeDetailWidget: AttributeDetailWidget;
|
private attributeDetailWidget: AttributeDetailWidget;
|
||||||
|
private api: Tabulator;
|
||||||
|
private parentNote: FNote;
|
||||||
|
|
||||||
|
private newAttribute?: Attribute;
|
||||||
private newAttributePosition?: number;
|
private newAttributePosition?: number;
|
||||||
private existingAttributeToEdit?: Attribute;
|
private existingAttributeToEdit?: Attribute;
|
||||||
private api: Tabulator;
|
|
||||||
private newAttribute?: Attribute;
|
|
||||||
private parentNote: FNote;
|
|
||||||
|
|
||||||
constructor($parent: JQuery<HTMLElement>, parentNote: FNote, api: Tabulator) {
|
constructor($parent: JQuery<HTMLElement>, parentNote: FNote, api: Tabulator) {
|
||||||
super();
|
super();
|
||||||
@ -95,7 +96,9 @@ export default class TableColumnEditing extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resetNewAttributePosition() {
|
resetNewAttributePosition() {
|
||||||
this.newAttributePosition = 0;
|
this.newAttribute = undefined;
|
||||||
|
this.newAttributePosition = undefined;
|
||||||
|
this.existingAttributeToEdit = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
getFAttributeFromField(field: string) {
|
getFAttributeFromField(field: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user