mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2705 from omnivore-app/fix/ios-highlight-remove-confirm
Fix check for confirming if a highlight has a note
This commit is contained in:
commit
2cdc8ef090
5 changed files with 7 additions and 6 deletions
File diff suppressed because one or more lines are too long
|
|
@ -159,8 +159,8 @@ public struct GridCard: View {
|
|||
// .onTapGesture { tapHandler() }
|
||||
}
|
||||
|
||||
if let status = item.serverSyncStatus, status != ServerSyncStatus.isNSync.rawValue {
|
||||
SyncStatusIcon(status: ServerSyncStatus(rawValue: Int(status)) ?? ServerSyncStatus.isNSync)
|
||||
if item.serverSyncStatus != ServerSyncStatus.isNSync.rawValue {
|
||||
SyncStatusIcon(status: ServerSyncStatus(rawValue: Int(item.serverSyncStatus)) ?? ServerSyncStatus.isNSync)
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 0)
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ public struct FeedCard: View {
|
|||
#endif
|
||||
}
|
||||
|
||||
if let recs = Recommendation.notViewers(viewer: viewer, item.recommendations), recs.count > 0 {
|
||||
let recs = Recommendation.notViewers(viewer: viewer, item.recommendations)
|
||||
if recs.count > 0 {
|
||||
let byStr = Recommendation.byline(recs)
|
||||
let inStr = Recommendation.groupsLine(recs)
|
||||
HStack {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -472,7 +472,7 @@ export function HighlightsLayer(props: HighlightsLayerProps): JSX.Element {
|
|||
async (action: HighlightAction, param?: string) => {
|
||||
switch (action) {
|
||||
case 'delete':
|
||||
if (focusedHighlight?.annotation == undefined) {
|
||||
if ((focusedHighlight?.annotation ?? '').length === 0) {
|
||||
await removeHighlightCallback()
|
||||
} else {
|
||||
setConfirmDeleteHighlightWithNoteId(focusedHighlight?.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue