We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1281c commit be4590dCopy full SHA for be4590d
GoInfoGame/GoInfoGame/UI/Map/MapView.swift
@@ -226,6 +226,12 @@ struct MapView: View {
226
ToolbarItem(placement: .navigationBarTrailing) {
227
QuestSyncButton(badgeCount: viewModel.syncFailedElementsCount, isSyncing: isSyncing, action: {
228
debugPrint("Sync taped")
229
+ guard viewModel.syncFailedElementsCount > 0 else {
230
+ alertIcon = "info.bubble"
231
+ alertMessage = "No elements to sync"
232
+ showAlert = true
233
+ return
234
+ }
235
isSyncing = true
236
DatasyncManager.shared.syncDataToOSM(exclude_gig_tags: false) { _ in
237
isSyncing = false
0 commit comments