File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 275
275
< i
276
276
class ="fa fa-question-circle "
277
277
style ="margin-left: 3px; "
278
- uib-tooltip ="{{ 'search.files.num_msg' | translate(objects.length) }} "
278
+ uib-tooltip ="{{ objectLengthI18nTip }} "
279
279
tooltip-placement ="bottom "
280
280
tooltip-append-to-body ="true "
281
281
> </ i >
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ angular
47
47
objectName : "" ,
48
48
} ,
49
49
searchObjectName : searchObjectName ,
50
-
50
+ objects : [ ] ,
51
+
51
52
goIn : goIn ,
52
53
53
54
transVisible : localStorage . getItem ( "transVisible" ) == "true" ,
@@ -124,6 +125,8 @@ angular
124
125
uploadsChange : uploadsChange ,
125
126
downloadsChange : downloadsChange ,
126
127
} ,
128
+
129
+ objectLengthI18nTip : "" ,
127
130
} ) ;
128
131
129
132
if ( $scope . isMac ) {
@@ -618,6 +621,15 @@ angular
618
621
) ;
619
622
}
620
623
624
+ $scope . $watch (
625
+ ( ) => $scope . objects . length ,
626
+ ( ) => {
627
+ $scope . objectLengthI18nTip = T ( "search.files.num_msg" , {
628
+ num : $scope . objects . length ,
629
+ } ) ;
630
+ }
631
+ ) ;
632
+
621
633
function loadNext ( ) {
622
634
if ( $scope . nextObjectsMarker ) {
623
635
console . log ( "loadNext" ) ;
You can’t perform that action at this time.
0 commit comments