mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
fix: legacy files favorite event node type
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
f5f142d31b
commit
2d6e50a8db
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue