summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-22 20:56:40 +0200
committerGitHub <noreply@github.com>2020-10-22 20:56:40 +0200
commit59cefdd5ecc4d0a052d37c309856a02c921318e0 (patch)
treea93e52ab0853c1f5f0234dad4787e94c770f1186
parent2ba34cba2c571c8a3e5315b79b8a627af2079ab6 (diff)
parent805676309bd298ce9e4fe5f973e718db51b7f2dc (diff)
downloadnextcloud-server-59cefdd5ecc4d0a052d37c309856a02c921318e0.tar.gz
nextcloud-server-59cefdd5ecc4d0a052d37c309856a02c921318e0.zip
Merge pull request #23630 from nextcloud/bugfix/23240/bring-back-restore-share-button
Bring back the restore share button
-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 e47e47d7f4b..c323ff9b51b 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -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;
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 936f907a324..35800c8d279 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>');