@@ -213,6 +213,9 @@ - (void)refresh{
213213 [weakSelf endLoading ];
214214 if (data) {
215215 weakSelf.myFiles = data;
216+ if (weakSelf.curFolder .isDefaultFolder && weakSelf.myFiles .list .count > 0 ) {
217+ [weakSelf.myFiles addSharedFolder ];
218+ }
216219 [weakSelf updateDataWithSearchStr ];
217220 }
218221 [weakSelf configBlankPage: EaseBlankPageTypeFile hasData: ([weakSelf totalDataRow ] > 0 ) hasError: (error != nil ) reloadButtonBlock: ^(id sender) {
@@ -490,13 +493,19 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
490493 if (indexPath.row < _uploadFiles.count ) {
491494 [NSObject showHudTipStr: @" 正在上传的不能批处理" ];
492495 [tableView deselectRowAtIndexPath: indexPath animated: YES ];
496+ }else if (indexPath.row < _folderList.count + _uploadFiles.count ) {
497+ ProjectFile *clickedFolder = [_folderList objectAtIndex: indexPath.row - _uploadFiles.count];
498+ if (clickedFolder.isSharedFolder ) {
499+ [NSObject showHudTipStr: @" 分享中文件夹不支持编辑" ];
500+ [tableView deselectRowAtIndexPath: indexPath animated: YES ];
501+ }
493502 }
494503 }else {
495504 [tableView deselectRowAtIndexPath: indexPath animated: YES ];
496505 if (indexPath.row < _uploadFiles.count ) {
497506
498507 }else if (indexPath.row < _folderList.count + _uploadFiles.count ) {
499- ProjectFile *clickedFolder = [_folderList objectAtIndex: indexPath.row - _uploadFiles.count];;
508+ ProjectFile *clickedFolder = [_folderList objectAtIndex: indexPath.row - _uploadFiles.count];
500509 [self goToVCWithFolder: clickedFolder inProject: self .curProject];
501510 }else {
502511 ProjectFile *file = [_fileList objectAtIndex: (indexPath.row - _folderList.count - _uploadFiles.count)];
@@ -508,9 +517,11 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
508517#pragma mark Edit Table
509518- (NSArray *)rightButtonsWithObj : (ProjectFile *)obj {
510519 NSMutableArray *rightUtilityButtons = [NSMutableArray new ];
511- [rightUtilityButtons sw_addUtilityButtonWithColor: kColorD8DDE4 icon: [UIImage imageNamed: @" icon_file_cell_move" ]];
512- [rightUtilityButtons sw_addUtilityButtonWithColor: [UIColor colorWithHexString: @" 0xF2F4F6" ] icon: [UIImage imageNamed: @" icon_file_cell_rename" ]];
513- [rightUtilityButtons sw_addUtilityButtonWithColor: [UIColor colorWithHexString: @" 0xF66262" ] icon: [UIImage imageNamed: @" icon_file_cell_delete" ]];
520+ if (!obj.isSharedFolder ) {
521+ [rightUtilityButtons sw_addUtilityButtonWithColor: kColorD8DDE4 icon: [UIImage imageNamed: @" icon_file_cell_move" ]];
522+ [rightUtilityButtons sw_addUtilityButtonWithColor: [UIColor colorWithHexString: @" 0xF2F4F6" ] icon: [UIImage imageNamed: @" icon_file_cell_rename" ]];
523+ [rightUtilityButtons sw_addUtilityButtonWithColor: [UIColor colorWithHexString: @" 0xF66262" ] icon: [UIImage imageNamed: @" icon_file_cell_delete" ]];
524+ }
514525 return rightUtilityButtons;
515526}
516527
0 commit comments