feat: item linking (#1779)

This commit is contained in:
Aman Harwara
2022-10-11 23:54:00 +05:30
committed by GitHub
parent d22c164e5d
commit e3f28421ff
68 changed files with 2064 additions and 1277 deletions

View File

@@ -394,10 +394,18 @@ export class NavigationController extends AbstractViewController {
await this.setSelectedTag(this.homeNavigationView)
}
public async selectFilesView() {
await this.setSelectedTag(this.filesNavigationView)
}
get homeNavigationView(): SmartView {
return this.smartViews[0]
}
get filesNavigationView(): SmartView {
return this.smartViews.find((view) => view.uuid === SystemViewId.Files) as SmartView
}
private setSelectedTagInstance(tag: AnyTag | undefined): void {
runInAction(() => (this.selected_ = tag))
}