You need to sign in or sign up before continuing.
Commit 4abc4c34 authored by sugita mamoru's avatar sugita mamoru

誤ってAlertが表示される問題を修正

parent 575810d0
...@@ -75,4 +75,5 @@ struct NotificationView: View { ...@@ -75,4 +75,5 @@ struct NotificationView: View {
#Preview { #Preview {
NotificationView() NotificationView()
.environmentObject(SelectedTabModel())
} }
...@@ -38,13 +38,6 @@ struct MapTaskView: View { ...@@ -38,13 +38,6 @@ struct MapTaskView: View {
Button(action: { Button(action: {
taskViewModel.viewMode = .SwitchingMenu taskViewModel.viewMode = .SwitchingMenu
taskViewModel.isShowSettingView = false taskViewModel.isShowSettingView = false
if var eca = SharingData.eca.ecaArea.map({ $0.1 }).filter({ $0.isRunning }).first{
eca.status = .noticePass
// SharingData.eca.editEcaArea(key: eca.name, value: eca)
SharingData.eca.isShowEcaAlert = true
}
}, label: { }, label: {
if taskViewModel.viewMode != .SwitchingMenu || taskViewModel.isShowSettingView{ if taskViewModel.viewMode != .SwitchingMenu || taskViewModel.isShowSettingView{
Image("ink_02") Image("ink_02")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment