File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
li.list-group-item
2
2
.close-icon ( data-hook ='close' )
3
3
i.fa.fa-close
4
- a( data-hook ='name' )
4
+ a()
5
+ span( data-hook ='name' )
6
+ span( style ='padding-left: 4px;' ,
7
+ data-hook ='has-auth' ,
8
+ title ='This connection has authentication enabled.' )
9
+ i.fa.fa-lock
Original file line number Diff line number Diff line change @@ -28,6 +28,20 @@ var SidebarItemView = View.extend({
28
28
hover : {
29
29
type : 'toggle' ,
30
30
hook : 'close'
31
+ } ,
32
+ has_auth : {
33
+ type : 'booleanClass' ,
34
+ hook : 'has-auth' ,
35
+ yes : 'visible' ,
36
+ no : 'hidden'
37
+ }
38
+ } ,
39
+ derived : {
40
+ has_auth : {
41
+ deps : [ 'model.auth_mechanism' ] ,
42
+ fn : function ( ) {
43
+ return this . model . auth_mechanism !== null ;
44
+ }
31
45
}
32
46
} ,
33
47
template : require ( './connection.jade' ) ,
You can’t perform that action at this time.
0 commit comments