diff --git a/PadelClub.xcodeproj/project.pbxproj b/PadelClub.xcodeproj/project.pbxproj index b7c42a2..b7dc75f 100644 --- a/PadelClub.xcodeproj/project.pbxproj +++ b/PadelClub.xcodeproj/project.pbxproj @@ -1901,7 +1901,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 58; + CURRENT_PROJECT_VERSION = 59; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEFINES_MODULE = YES; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; @@ -1941,7 +1941,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 58; + CURRENT_PROJECT_VERSION = 59; DEFINES_MODULE = YES; DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\""; DEVELOPMENT_TEAM = BQ3Y44M3Q6; diff --git a/PadelClub/Views/Shared/SupportButtonView.swift b/PadelClub/Views/Shared/SupportButtonView.swift index 70b9d55..904545d 100644 --- a/PadelClub/Views/Shared/SupportButtonView.swift +++ b/PadelClub/Views/Shared/SupportButtonView.swift @@ -51,7 +51,7 @@ struct SupportButtonView: View { Text(message) } .sheet(item: $zipFilePath) { zipFilePath in - MailComposeView(recipients: ["support@padelclub.app"], bccRecipients: nil, body: nil, subject: _getSubject(), attachmentURL: zipFilePath) { result in + MailComposeView(recipients: ["support@padelclub.app"], bccRecipients: nil, body: _getBody(), subject: _getSubject(), attachmentURL: zipFilePath) { result in switch result { case .cancelled, .saved: self.zipFilePath = nil @@ -78,6 +78,11 @@ struct SupportButtonView: View { } + private func _getBody() -> String { + let separator = "---------------------------------------------" + return ["token", Store.main.token(), separator, "userId", Store.main.userId, separator, "dataStore userId", DataStore.shared.user.id].compacted().joined(separator: "\n\n") + } + private func _getDeviceIdentifier() -> String { var systemInfo = utsname() uname(&systemInfo) diff --git a/PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift b/PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift index cb4e79b..d4b1ce2 100644 --- a/PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift +++ b/PadelClub/Views/Tournament/Shared/TournamentBroadcastRowView.swift @@ -15,8 +15,8 @@ struct TournamentBroadcastRowView: View { NavigationLink(value: Screen.broadcast) { LabeledContent { if Store.main.userId == nil { - Image(systemName: "xmark.circle.fill") - .foregroundStyle(.logoRed) + Image(systemName: "exclamationmark.circle.fill") + .foregroundStyle(.master) } else { if tournament.isPrivate { Text("tournoi privé").foregroundStyle(.logoRed) @@ -27,7 +27,7 @@ struct TournamentBroadcastRowView: View { } label: { Text("Publication") if Store.main.userId == nil { - Text("Un compte Padel Club est nécessaire") + Text("Créez un compte pour publier !") } } }