|
@@ -306,24 +306,24 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
|
|
|
|
|
|
actions.append(
|
|
|
NCMenuAction(
|
|
|
- title: NSLocalizedString("_delete_", comment: ""),
|
|
|
- icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: .red),
|
|
|
+ title: NSLocalizedString("_deselect_", comment: ""),
|
|
|
+ icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
|
|
|
action: { menuAction in
|
|
|
- self.deleteItems()
|
|
|
+ self.isEditMode = false
|
|
|
+ self.selectocId.removeAll()
|
|
|
+ self.collectionView?.reloadDataThenPerform {
|
|
|
+ self.downloadThumbnail()
|
|
|
+ }
|
|
|
}
|
|
|
)
|
|
|
)
|
|
|
|
|
|
actions.append(
|
|
|
NCMenuAction(
|
|
|
- title: NSLocalizedString("_cancel_", comment: ""),
|
|
|
- icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
|
|
|
+ title: NSLocalizedString("_delete_", comment: ""),
|
|
|
+ icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: .red),
|
|
|
action: { menuAction in
|
|
|
- self.isEditMode = false
|
|
|
- self.selectocId.removeAll()
|
|
|
- self.collectionView?.reloadDataThenPerform {
|
|
|
- self.downloadThumbnail()
|
|
|
- }
|
|
|
+ self.deleteItems()
|
|
|
}
|
|
|
)
|
|
|
)
|