mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Remove some unused code, especially in ViewConfigTab
Summary: Remove several unused methods in ViewConfigTab.js, and all of SummaryConfig.js. Test Plan: this Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D3245
This commit is contained in:
@@ -19,8 +19,6 @@ export interface ViewRec extends IRowModel<"_grist_Views"> {
|
||||
|
||||
// If the active section is removed, set the next active section to be the default.
|
||||
_isActiveSectionGone: ko.Computed<boolean>;
|
||||
|
||||
isLinking: ko.Observable<boolean>;
|
||||
}
|
||||
|
||||
export function createViewRec(this: ViewRec, docModel: DocModel): void {
|
||||
@@ -46,6 +44,4 @@ export function createViewRec(this: ViewRec, docModel: DocModel): void {
|
||||
this.activeSectionId(0);
|
||||
}
|
||||
}));
|
||||
|
||||
this.isLinking = ko.observable(false);
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ export function createViewSectionRec(this: ViewSectionRec, docModel: DocModel):
|
||||
|
||||
this.hasFocus = ko.pureComputed({
|
||||
// Read may occur for recently disposed sections, must check condition first.
|
||||
read: () => !this.isDisposed() && this.view().activeSectionId() === this.id() && !this.view().isLinking(),
|
||||
read: () => !this.isDisposed() && this.view().activeSectionId() === this.id(),
|
||||
write: (val) => { if (val) { this.view().activeSectionId(this.id()); } }
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user