wip
This commit is contained in:
@@ -216,7 +216,8 @@ struct AddTaskView: View {
|
||||
priority: Int32(priority.id),
|
||||
status: selectedStatus.map { KotlinInt(value: $0.id) },
|
||||
dueDate: dueDateString,
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost,
|
||||
archived: false
|
||||
)
|
||||
|
||||
viewModel.createTask(request: request) { success in
|
||||
|
||||
@@ -239,7 +239,8 @@ struct AddTaskWithResidenceView: View {
|
||||
priority: Int32(priority.id),
|
||||
status: selectedStatus.map { KotlinInt(value: $0.id) },
|
||||
dueDate: dueDateString,
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost,
|
||||
archived: false
|
||||
)
|
||||
|
||||
viewModel.createTask(request: request) { success in
|
||||
|
||||
@@ -151,7 +151,8 @@ struct EditTaskView: View {
|
||||
priority: priority.id,
|
||||
status: KotlinInt(value: status.id),
|
||||
dueDate: dueDate,
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost
|
||||
estimatedCost: estimatedCost.isEmpty ? nil : estimatedCost,
|
||||
archived: task.archived
|
||||
)
|
||||
|
||||
viewModel.updateTask(id: task.id, request: request) { success in
|
||||
|
||||
Reference in New Issue
Block a user