aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/services/Navigation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/services/Navigation.ts')
-rw-r--r--apps/files/src/services/Navigation.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/src/services/Navigation.ts b/apps/files/src/services/Navigation.ts
index e86266013d7..b2ae3b0b973 100644
--- a/apps/files/src/services/Navigation.ts
+++ b/apps/files/src/services/Navigation.ts
@@ -126,6 +126,13 @@ export default class {
this._views.push(view)
}
+ remove(id: string) {
+ const index = this._views.findIndex(view => view.id === id)
+ if (index !== -1) {
+ this._views.splice(index, 1)
+ }
+ }
+
get views(): Navigation[] {
return this._views
}