feat(files): allow navigation entry removal

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
pull/37866/head
John Molakvoæ 2023-04-21 15:41:49 +07:00
parent cae00d2e96
commit ea9099a72f
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
1 changed files with 7 additions and 0 deletions

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