mirror of
https://github.com/nextcloud/server.git
synced 2026-02-23 01:40:59 -05:00
Merge pull request #34181 from nextcloud/enh/edit-locally-icon
Use computer icon for edit locally file action
This commit is contained in:
commit
e346417067
8 changed files with 18 additions and 6 deletions
|
|
@ -703,6 +703,10 @@ a.action > img {
|
|||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
a.action.action-editlocally img.icon {
|
||||
filter: var(--background-invert-if-dark);
|
||||
}
|
||||
|
||||
/* Actions for selected files */
|
||||
.selectedActions {
|
||||
position: relative;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -596,6 +596,10 @@ a.action > img {
|
|||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
a.action.action-editlocally img.icon {
|
||||
filter: var(--background-invert-if-dark);
|
||||
}
|
||||
|
||||
/* Actions for selected files */
|
||||
.selectedActions {
|
||||
position: relative;
|
||||
|
|
@ -1311,4 +1315,3 @@ table.dragshadow td.size {
|
|||
margin: 0 12px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -703,6 +703,10 @@ a.action > img {
|
|||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
a.action.action-editlocally img.icon {
|
||||
filter: var(--background-invert-if-dark);
|
||||
}
|
||||
|
||||
/* Actions for selected files */
|
||||
.selectedActions {
|
||||
position: relative;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
apps/files/img/computer.svg
Normal file
1
apps/files/img/computer.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H1c-.55 0-1 .45-1 1s.45 1 1 1h22c.55 0 1-.45 1-1s-.45-1-1-1h-3zM5 6h14c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1z"/></svg>
|
||||
|
After Width: | Height: | Size: 344 B |
|
|
@ -720,10 +720,10 @@
|
|||
},
|
||||
mime: 'all',
|
||||
order: -23,
|
||||
iconClass: function(filename, context) {
|
||||
icon: function(filename, context) {
|
||||
var locked = context.$file.data('locked');
|
||||
if (!locked) {
|
||||
return 'icon-rename';
|
||||
return OC.imagePath('files', 'computer.svg')
|
||||
}
|
||||
},
|
||||
permissions: OC.PERMISSION_UPDATE,
|
||||
|
|
|
|||
|
|
@ -2811,7 +2811,7 @@
|
|||
var scheme = 'nc://';
|
||||
var command = 'open';
|
||||
var uid = OC.getCurrentUser().uid;
|
||||
var url = scheme + command + '/' + uid + '@' + window.location.host + (window.location.port ? `:${window.location.port}` : '') + OC.encodePath(path);
|
||||
var url = scheme + command + '/' + uid + '@' + window.location.host + OC.encodePath(path);
|
||||
|
||||
window.location.href = url;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue