File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6363 </ a >
6464 </ li >
6565 < li >
66- < a href ="# " ng-click ="showSetStorageClassOfFilesSelected() " ng-hide ="currentInfo.bucketGrantedPermission === 'readonly' || sel.has.length === 0 || currentInfo.availableStorageClasses.length === 0 ">
66+ < a href ="# " ng-click ="showSetStorageClassOfFilesSelected() " ng-hide ="currentInfo.bucketGrantedPermission === 'readonly' || sel.has.length === 0 || currentInfo.availableStorageClasses.length < 2 ">
6767 < i class ="iconfont icon-a-726-8-02 text-primary " style ="margin: 0 -2px; "> </ i >
6868 {{'updateStorageClass'|translate}}
6969 </ a >
Original file line number Diff line number Diff line change @@ -1778,7 +1778,7 @@ webModule.controller(FILES_CONTROLLER_NAME, [
17781778 acts . push ( `<button type="button" class="btn download-link" data-toggle="tooltip" data-toggle-i18n="getDownloadLink"><span class="fa fa-link"></span></button>` ) ;
17791779 }
17801780 }
1781- if ( row . itemType !== 'folder' && $scope . currentInfo . availableStorageClasses . length > 0 ) {
1781+ if ( row . itemType !== 'folder' && $scope . currentInfo . availableStorageClasses . length >= 2 ) {
17821782 acts . push ( `<button type="button" class="btn updateStorageClass text-warning" data-toggle="tooltip" data-toggle-i18n="updateStorageClass"><span class="iconfont icon-a-726-8-02"></span></button>` ) ;
17831783 }
17841784 if ( $scope . currentInfo . bucketGrantedPermission !== 'readonly' ) {
Original file line number Diff line number Diff line change 4343 < i class ="glyphicon glyphicon-link "> </ i >
4444 {{'getDownloadLink'|translate}}</ button >
4545
46- < button type ="button " class ="btn btn-default btn-sm " ng-hide ="currentInfo.availableStorageClasses.length === 0 " ng-click ="showFn.updateStorageClass(); ">
46+ < button type ="button " class ="btn btn-default btn-sm " ng-hide ="currentInfo.availableStorageClasses.length < 2 " ng-click ="showFn.updateStorageClass(); ">
4747 < i class ="iconfont icon-a-726-8-02 "> </ i >
4848 {{'updateStorageClass'|translate}}</ button >
4949
You can’t perform that action at this time.
0 commit comments