mirror of
https://github.com/nextcloud/server.git
synced 2026-04-04 16:45:22 -04:00
feat(files): allow navigation entry removal
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
cae00d2e96
commit
ea9099a72f
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue