diff --git a/apps/comments/js/comments.js b/apps/comments/js/comments.js index e9d75bb98351cccfa68eb53150d3664e112d4237..72bf0458f99440fbf20651b63cffc30f05ff0007 100644 Binary files a/apps/comments/js/comments.js and b/apps/comments/js/comments.js differ diff --git a/apps/comments/js/comments.js.map b/apps/comments/js/comments.js.map index 919d91a14bb69aac5248d6f4521256ba77bb2c1e..c001c0ec465e262325bf5c5e5f7dfbc1408dcc4e 100644 Binary files a/apps/comments/js/comments.js.map and b/apps/comments/js/comments.js.map differ diff --git a/apps/comments/src/filesplugin.js b/apps/comments/src/filesplugin.js index 939edc8c6953460e61c44289ab647fbbe255ba1f..2073be09b69fa5dbef240224a5c6b4d354a689ae 100644 --- a/apps/comments/src/filesplugin.js +++ b/apps/comments/src/filesplugin.js @@ -29,7 +29,7 @@ */ OCA.Comments.FilesPlugin = { ignoreLists: [ - 'files_trashbin', + 'trashbin', 'files.public' ], @@ -79,8 +79,18 @@ // register "comment" action for reading comments fileList.fileActions.registerAction({ name: 'Comment', - displayName: t('comments', 'Comment'), + displayName: function(context) { + if (context && context.$file) { + var unread = parseInt(context.$file.data('comments-unread'), 10) + if (unread >= 0) { + return n('comments', '1 new comment', '{unread} new comments', unread, { unread: unread }) + } + } + return t('comments', 'Comment') + }, mime: 'all', + order: -140, + iconClass: 'icon-comment', permissions: OC.PERMISSION_READ, type: OCA.Files.FileActions.TYPE_INLINE, render: function(actionSpec, isDefault, context) { diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 440f505edec86f24777de52e6bb4cd5fe0529764..04987f8839ededbae4e1f1661035449076c90213 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -920,19 +920,8 @@ table.dragshadow td.size { align-items: center; justify-content: center; - &.action.action-share.permanent { - display: none; - } - - /* In "Deleted files", do not show "Restore" text next to icon as there is no space */ - &.action-restore.permanent span { - &:not(.icon) { - display: none; - } - } - - /* If there is a comment, show it instead of the share icon */ - &.action-comment ~ .action-share { + // hide all actions in grid view that are not the menu + &:not(.action-menu) { display: none; } } @@ -949,6 +938,14 @@ table.dragshadow td.size { border-radius: 50%; } } + // force show the sharing entry in the dropdown menu + .action-restore-container.hidden { + display: block !important; + } + // force show the sharing entry in the dropdown menu + .action-comment-container.hidden { + display: block !important; + } } form { diff --git a/apps/systemtags/js/systemtags.js b/apps/systemtags/js/systemtags.js index 3b6c96483744aea5f1e9739310645e2dd71cb6d4..c5a1d736956c53ffbe1d5ccb11fe6375dfac1e75 100644 Binary files a/apps/systemtags/js/systemtags.js and b/apps/systemtags/js/systemtags.js differ diff --git a/apps/systemtags/js/systemtags.js.map b/apps/systemtags/js/systemtags.js.map index bc8398e1abecc0e634c6e0951578f0229c109850..d378c1de8c827e6d547e5af367acb70d2b0a4338 100644 Binary files a/apps/systemtags/js/systemtags.js.map and b/apps/systemtags/js/systemtags.js.map differ diff --git a/apps/systemtags/src/filesplugin.js b/apps/systemtags/src/filesplugin.js index fc2a227b5be4232ef201fa7971610d6488e13e6e..7cf39e9dfd8ab8dbb43c0f27b0910da54e2b369f 100644 --- a/apps/systemtags/src/filesplugin.js +++ b/apps/systemtags/src/filesplugin.js @@ -22,7 +22,7 @@ */ OCA.SystemTags.FilesPlugin = { ignoreLists: [ - 'files_trashbin', + 'trashbin', 'files.public' ],