From 35e6e3d7aeb4ee9ee4acc1f6ab427cc3a7a08601 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 6 Jul 2023 16:13:29 -0700 Subject: [PATCH] Confirm delete --- .../Sources/App/Views/Home/HomeFeedViewIOS.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index d1d637faf..6c731356b 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -519,10 +519,11 @@ struct AnimatingCellHeight: AnimatableModifier { Button("Archive", action: { viewModel.setLinkArchived(dataService: dataService, objectID: item.objectID, archived: true) }) - Button("Delete", action: { - viewModel.removeLink(dataService: dataService, objectID: item.objectID) + Button("Remove", action: { + itemToRemove = item + confirmationShown = true }) - if FeaturedItemFilter(rawValue: viewModel.featureFilter) == .continueReading { + if FeaturedItemFilter(rawValue: viewModel.featureFilter) != .pinned { Button("Mark Read", action: { viewModel.markRead(dataService: dataService, item: item) })