File tree 3 files changed +18
-4
lines changed
3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change
1
+ tr [data-locked = 'true' ] .fileactions .action .action-menu .permanent {
2
+ position : relative;
3
+ top : 7px ;
4
+ }
5
+ .locking-inline-state .icon-password {
6
+ padding : 17px 23px ;
7
+ margin-right : -45px ;
8
+ top : -5px ;
9
+ width : 44px ;
10
+ position : relative;
11
+ opacity : 0.5 ;
12
+ }
Original file line number Diff line number Diff line change 47
47
}
48
48
return t ( 'files_lock' , 'Lock file' )
49
49
} ,
50
- mime : 'all ' ,
50
+ mime : 'file ' ,
51
51
order : - 140 ,
52
- iconClass : 'icon-security ' ,
52
+ iconClass : 'icon-password ' ,
53
53
permissions : OC . PERMISSION_UPDATE ,
54
54
actionHandler : self . switchLock
55
55
} )
61
61
var locked = context . $file . data ( 'locked' )
62
62
var $actionLink = $ ( '<span/>' )
63
63
if ( locked ) {
64
- $actionLink . text ( 'Locked' )
64
+ $actionLink . addClass ( 'locking-inline-state' )
65
+ $actionLink . addClass ( 'icon-password' )
65
66
}
66
67
context . $file . find ( 'a.name>span.fileactions' ) . append ( $actionLink )
67
68
return $actionLink
68
69
} ,
69
- mime : 'all ' ,
70
+ mime : 'file ' ,
70
71
order : - 140 ,
71
72
type : OCA . Files . FileActions . TYPE_INLINE ,
72
73
permissions : OC . PERMISSION_UPDATE ,
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ public function registerHooks() {
88
88
'OCA\Files::loadAdditionalScripts ' ,
89
89
function () {
90
90
Util::addScript (self ::APP_NAME , 'files ' );
91
+ Util::addStyle (self ::APP_NAME , 'files_lock ' );
91
92
}
92
93
);
93
94
You can’t perform that action at this time.
0 commit comments