diff options
Diffstat (limited to 'apps/systemtags/src/app.js')
-rw-r--r-- | apps/systemtags/src/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/systemtags/src/app.js b/apps/systemtags/src/app.js index b5f75c0e7db..e7e5fea5372 100644 --- a/apps/systemtags/src/app.js +++ b/apps/systemtags/src/app.js @@ -38,6 +38,9 @@ return this._fileList } + const tagsParam = (new URL(window.location.href)).searchParams.get('tags') + const initialTags = tagsParam ? tagsParam.split(',').map(parseInt) : [] + this._fileList = new OCA.SystemTags.FileList( $el, { @@ -49,6 +52,7 @@ // done if handling the event with the file list already // created. shown: true, + systemTagIds: initialTags } ) |