summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-23 13:58:18 +0200
committerGitHub <noreply@github.com>2020-10-23 13:58:18 +0200
commit50e532047e0f85bc25f07cacd1546232d1688831 (patch)
tree6697ed56f73cb3242a14916748f28f3536c9a3d9 /apps
parentbbc88ad70846158dabf5aaf1ba868cacb52872e6 (diff)
parent2981961f59c549446aa5fe3efcabe4d5c1658361 (diff)
downloadnextcloud-server-50e532047e0f85bc25f07cacd1546232d1688831.tar.gz
nextcloud-server-50e532047e0f85bc25f07cacd1546232d1688831.zip
Merge pull request #23637 from nextcloud/backport/23630/stable19
[stable19] Bring back the restore share button
Diffstat (limited to 'apps')
-rw-r--r--apps/files/css/files.scss17
-rw-r--r--apps/files/js/filelist.js4
2 files changed, 18 insertions, 3 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index e875e0da29a..aa790e1e688 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -538,6 +538,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;
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index e7d48d4bcd1..f7bc0ecd710 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1561,9 +1561,7 @@
"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>');