Fix adding events/notes

This commit is contained in:
Selim Mustafaev 2025-02-14 22:23:31 +03:00
parent f3a09e3500
commit 993ba2f128
2 changed files with 4 additions and 6 deletions

View File

@ -1745,7 +1745,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 145; CURRENT_PROJECT_VERSION = 146;
DEVELOPMENT_TEAM = 46DTTB8X4S; DEVELOPMENT_TEAM = 46DTTB8X4S;
INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_FILE = AutoCat/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = AutoCat; INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
@ -1772,7 +1772,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 145; CURRENT_PROJECT_VERSION = 146;
DEVELOPMENT_TEAM = 46DTTB8X4S; DEVELOPMENT_TEAM = 46DTTB8X4S;
INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_FILE = AutoCat/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = AutoCat; INFOPLIST_KEY_CFBundleDisplayName = AutoCat;

View File

@ -53,8 +53,7 @@ struct ReportScreen: View {
Section("History") { Section("History") {
LabeledContent("Events", value: String(viewModel.vehicle.events.count)) LabeledContent("Events", value: String(viewModel.vehicle.events.count))
.navigationLink(isActive: !viewModel.vehicle.events.isEmpty, .navigationLink(onTap: viewModel.openEvents)
onTap: viewModel.openEvents)
LabeledContent("OSAGO", value: String(viewModel.vehicle.osagoContracts.count)) LabeledContent("OSAGO", value: String(viewModel.vehicle.osagoContracts.count))
.navigationLink(isActive: !viewModel.vehicle.osagoContracts.isEmpty, .navigationLink(isActive: !viewModel.vehicle.osagoContracts.isEmpty,
onTap: viewModel.openOsago) onTap: viewModel.openOsago)
@ -68,8 +67,7 @@ struct ReportScreen: View {
.navigationLink(isActive: !viewModel.vehicle.ads.isEmpty, .navigationLink(isActive: !viewModel.vehicle.ads.isEmpty,
onTap: viewModel.openAds) onTap: viewModel.openAds)
LabeledContent("Notes", value: String(viewModel.vehicle.notes.count)) LabeledContent("Notes", value: String(viewModel.vehicle.notes.count))
.navigationLink(isActive: !viewModel.vehicle.notes.isEmpty, .navigationLink(onTap: viewModel.openNotes)
onTap: viewModel.openNotes)
} }
if viewModel.showDebugInfo { if viewModel.showDebugInfo {