]> source.dussan.org Git - nextcloud-server.git/commitdiff
Bring back the restore share button 23636/head
authorVincent Petry <vincent@nextcloud.com>
Thu, 22 Oct 2020 13:03:42 +0000 (15:03 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 22 Oct 2020 18:58:57 +0000 (18:58 +0000)
Fix disabled default file action to still use an anchor element, as this
is used in many other places (and potentially apps).

Adjusted anchor style to not look like it's clickable and added extras
to make sure everything inside still looks clickable as before.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/files/css/files.scss
apps/files/js/filelist.js

index e47e47d7f4b8496ae1c28b5f9db0d783b022df8d..c323ff9b51b439dfdcb66ba01492100c7b1abf53 100644 (file)
@@ -539,6 +539,23 @@ table td.selection {
        cursor: default !important;
 }
 
+/*
+ * Make the disabled link look not like a link in file list rows
+ */
+#fileList a.name.disabled {
+       * {
+               cursor: default;
+       }
+
+       a, a * {
+               cursor: pointer;
+       }
+
+       &:focus {
+               background: none;
+       }
+}
+
 a.action > img {
        height: 16px;
        width: 16px;
index 5e6225a48e9e7eb0f87c33be7ac4293be842be5f..e157b91b04d0991c91741ef55c982baf69ace76a 100644 (file)
                                "href": linkUrl
                        });
                        if (this._defaultFileActionsDisabled) {
-                               linkElem = $('<p></p>').attr({
-                                       "class": "name"
-                               })
+                               linkElem.addClass('disabled');
                        }
 
                        linkElem.append('<div class="thumbnail-wrapper"><div class="thumbnail" style="background-image:url(' + icon + ');"></div></div>');