pop read now link when archiving or deleting from reader

This commit is contained in:
Satindar Dhillon
2022-06-07 07:59:28 -07:00
committed by Jackson Harper
parent 9e88a11dda
commit 8460ba1cea

View File

@ -89,6 +89,7 @@ import WebKit
Button(
action: {
dataService.archiveLink(objectID: item.objectID, archived: !item.isArchived)
presentationMode.wrappedValue.dismiss()
Snackbar.show(message: !item.isArchived ? "Link archived" : "Link moved to Inbox")
},
label: {
@ -122,6 +123,7 @@ import WebKit
Button("Remove Link", role: .destructive) {
Snackbar.show(message: "Link removed")
dataService.removeLink(objectID: item.objectID)
presentationMode.wrappedValue.dismiss()
}
Button("Cancel", role: .cancel, action: {})
}