diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-07-11 15:06:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 15:06:03 +0200 |
commit | 2cf8d6d9652a55f81c6800f2e69b71597736c56c (patch) | |
tree | 3e48463d8ebc3c01961243e8e6b1fc10a60133b7 /apps/files/js | |
parent | 5c6ed30369f5c4edcf46e5e882c6096a7e3cd01e (diff) | |
parent | 74763e875737ea2bb0775194544a809041a2e7d6 (diff) | |
download | nextcloud-server-2cf8d6d9652a55f81c6800f2e69b71597736c56c.tar.gz nextcloud-server-2cf8d6d9652a55f81c6800f2e69b71597736c56c.zip |
Merge pull request #39196 from nextcloud/feat/f2v/sharing
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/tagsplugin.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js index 78bd7eec557..1b49c1df14a 100644 --- a/apps/files/js/tagsplugin.js +++ b/apps/files/js/tagsplugin.js @@ -111,6 +111,7 @@ var fileInfo = context.fileList.files[$file.index()]; var dir = context.dir || context.fileList.getCurrentDirectory(); var tags = $file.attr('data-tags'); + var isFile = $file.attr('data-type') === 'file'; if (_.isUndefined(tags)) { tags = ''; @@ -121,7 +122,7 @@ // Fake Node object for vue compatibility const node = { - type: 'folder', + type: isFile ? 'file' : 'folder', path: (dir + '/' + fileName).replace(/\/\/+/g, '/'), root: '/files/' + OC.getCurrentUser().uid } |