Marino Faggiana 8 жил өмнө
parent
commit
1131940763

+ 17 - 1
iOSClient/Offline/CCOfflinePageContent.m

@@ -293,6 +293,22 @@
                                 }];
     }
     
+    // ONLY Root Favorites : Remove file/folder Favorites
+    if (_serverUrl == nil && [_pageType isEqualToString:k_pageOfflineFavorites]) {
+        
+        [actionSheet addButtonWithTitle:NSLocalizedString(@"_remove_favorites_", nil)
+                                  image:[UIImage imageNamed:image_actionSheetOffline]
+                        backgroundColor:[UIColor whiteColor]
+                                 height: 50.0
+                                   type:AHKActionSheetButtonTypeDefault
+                                handler:^(AHKActionSheet *as) {
+                                    
+                                    [self.tableView setEditing:NO animated:YES];
+                                    
+                                    [self reloadDatasource];
+                                }];
+    }
+
     // ONLY Root Offline : Remove file/folder offline
     if (_serverUrl == nil && [_pageType isEqualToString:k_pageOfflineOffline]) {
         
@@ -342,7 +358,7 @@
                                                              style:UIAlertActionStyleDestructive
                                                            handler:^(UIAlertAction *action) {
                                                                
-                                                               if ([_pageType isEqualToString:k_pageOfflineOffline]) {
+                                                               if ([_pageType isEqualToString:k_pageOfflineFavorites] || [_pageType isEqualToString:k_pageOfflineOffline]) {
                                                                    
                                                                    [[CCActions sharedInstance] deleteFileOrFolder:_metadata delegate:self];
                                                                }

+ 1 - 1
iOSClient/en.lproj/Localizable.strings

@@ -209,7 +209,7 @@
 "_offline_"                     = "Offline";
 "_local_storage_"               = "Local storage";
 "_no_files_uploaded_"           = "No files uploaded";
-"_tutorial_favorite_view_"      = "Copy here the files that should be available offline.\n\nThey will be synchronized with your cloud.";
+"_tutorial_favorite_view_"      = "Here is the list of files that you have selected as favorites.";
 "_tutorial_offline_view_"       = "Copy here the files that should be available offline.\n\nThey will be synchronized with your cloud.";
 "_tutorial_local_view_"         = "You'll find the unpacked files from your cloud.\n\nConnect to iTunes to share these files.";
 "_more_"                        = "More";