Disable stop timer button when no project is selected
This commit is contained in:
@@ -116,6 +116,7 @@ struct TimerView: View {
|
|||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.tint(.red)
|
.tint(.red)
|
||||||
.controlSize(.large)
|
.controlSize(.large)
|
||||||
|
.disabled(viewModel.selectedProject == nil && viewModel.activeTimer?.project == nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
|
|||||||
Reference in New Issue
Block a user