Skip to content

Commit

Permalink
make all abstract methods protected
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Mar 14, 2023
1 parent c655d54 commit 1430a42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions extension/src/plots/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ export class Plots extends BaseRepository<TPlotsData> {
this.onDidChangePaths = this.pathsChanged.event
}

public sendInitialWebviewData() {
return this.fetchMissingOrSendPlots()
}

public togglePathStatus(path: string) {
const status = this.paths.toggleStatus(path)
this.paths.setTemplateOrder()
Expand Down Expand Up @@ -125,6 +121,10 @@ export class Plots extends BaseRepository<TPlotsData> {
return collectScale(this.paths.getTerminalNodes())
}

protected sendInitialWebviewData() {
return this.fetchMissingOrSendPlots()
}

private notifyChanged() {
this.paths.setSelectedRevisions(this.plots.getSelectedRevisions())
this.pathsChanged.fire()
Expand Down
8 changes: 4 additions & 4 deletions extension/src/setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1430a42

Please sign in to comment.