feat(files): allow navigation entry removal

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ 2023-04-21 15:41:49 +02:00
parent cae00d2e96
commit ea9099a72f
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -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
}