marinofaggiana 5 سال پیش
والد
کامیت
b68787ff78
3فایلهای تغییر یافته به همراه11 افزوده شده و 34 حذف شده
  1. 11 10
      iOSClient/Media/NCMedia.swift
  2. 0 8
      iOSClient/Offline/NCOffline.swift
  3. 0 16
      iOSClient/Trash/NCTrash.swift

+ 11 - 10
iOSClient/Media/NCMedia.swift

@@ -303,6 +303,17 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
             )
 
         } else {
+           
+            actions.append(
+                NCMenuAction(
+                    title: NSLocalizedString("_delete_", comment: ""),
+                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: .red),
+                    action: { menuAction in
+                        self.deleteItems()
+                    }
+                )
+            )
+            
             actions.append(
                 NCMenuAction(
                     title: NSLocalizedString("_cancel_", comment: ""),
@@ -316,16 +327,6 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
                     }
                 )
             )
-
-            actions.append(
-                NCMenuAction(
-                    title: NSLocalizedString("_delete_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
-                    action: { menuAction in
-                        self.deleteItems()
-                    }
-                )
-            )
         }
 
         mainMenuViewController.actions = actions

+ 0 - 8
iOSClient/Offline/NCOffline.swift

@@ -394,14 +394,6 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
                 )
             )
 
-            actions.append(
-                NCMenuAction(
-                    title: NSLocalizedString("_cancel_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
-                    action: { menuAction in }
-                )
-            )
-
             mainMenuViewController.actions = actions
             let menuPanelController = NCMenuPanelController()
             menuPanelController.parentPresenter = self

+ 0 - 16
iOSClient/Trash/NCTrash.swift

@@ -369,14 +369,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
                 )
             )
 
-            actions.append(
-                NCMenuAction(
-                    title: NSLocalizedString("_cancel_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
-                    action: { menuAction in }
-                )
-            )
-
             mainMenuViewController.actions = actions
 
             let menuPanelController = NCMenuPanelController()
@@ -442,14 +434,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
                 )
             )
 
-            actions.append(
-                NCMenuAction(
-                    title: NSLocalizedString("_cancel_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
-                    action: { menuAction in }
-                )
-            )
-
             mainMenuViewController.actions = actions
 
             let menuPanelController = NCMenuPanelController()