From 1430a423fd8a36c5a70b642dcd17bede03488845 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Tue, 14 Mar 2023 14:49:34 +1100 Subject: [PATCH] make all abstract methods protected --- extension/src/plots/index.ts | 8 ++++---- extension/src/setup/index.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extension/src/plots/index.ts b/extension/src/plots/index.ts index 97913382bd..e612fd456a 100644 --- a/extension/src/plots/index.ts +++ b/extension/src/plots/index.ts @@ -73,10 +73,6 @@ export class Plots extends BaseRepository { this.onDidChangePaths = this.pathsChanged.event } - public sendInitialWebviewData() { - return this.fetchMissingOrSendPlots() - } - public togglePathStatus(path: string) { const status = this.paths.toggleStatus(path) this.paths.setTemplateOrder() @@ -125,6 +121,10 @@ export class Plots extends BaseRepository { return collectScale(this.paths.getTerminalNodes()) } + protected sendInitialWebviewData() { + return this.fetchMissingOrSendPlots() + } + private notifyChanged() { this.paths.setSelectedRevisions(this.plots.getSelectedRevisions()) this.pathsChanged.fire() diff --git a/extension/src/setup/index.ts b/extension/src/setup/index.ts index cb4e52f7b7..a5fb6cdca2 100644 --- a/extension/src/setup/index.ts +++ b/extension/src/setup/index.ts @@ -255,10 +255,6 @@ export class Setup return !!this.webview?.isActive } - public sendInitialWebviewData() { - return this.sendDataToWebview() - } - public shouldBeShown() { return !this.cliCompatible || !this.hasRoots() || !this.getHasData() } @@ -334,6 +330,10 @@ export class Setup return this.studioAccessToken } + public sendInitialWebviewData() { + return this.sendDataToWebview() + } + private async sendDataToWebview() { const projectInitialized = this.hasRoots() const hasData = this.getHasData()