Projects
This commit is contained in:
parent
6400cdac1c
commit
233f7ea460
|
|
@ -53,7 +53,10 @@ class ProjectViewVM {
|
|||
final project = state.projectState.map[state.projectUIState.selectedId];
|
||||
|
||||
return ProjectViewVM(
|
||||
isLoading: store.state.isLoading,
|
||||
company: state.selectedCompany,
|
||||
isSaving: state.isSaving,
|
||||
isLoading: state.isLoading,
|
||||
isDirty: project.isNew,
|
||||
project: project,
|
||||
onEditPressed: (BuildContext context) {
|
||||
store.dispatch(EditProject(project: project, context: context));
|
||||
|
|
|
|||
|
|
@ -53,7 +53,10 @@ class StubViewVM {
|
|||
final stub = state.stubState.map[state.stubUIState.selectedId];
|
||||
|
||||
return StubViewVM(
|
||||
isLoading: store.state.isLoading,
|
||||
company: state.selectedCompany,
|
||||
isSaving: state.isSaving,
|
||||
isLoading: state.isLoading,
|
||||
isDirty: stub.isNew,
|
||||
stub: stub,
|
||||
onEditPressed: (BuildContext context) {
|
||||
store.dispatch(EditStub(stub: stub, context: context));
|
||||
|
|
|
|||
Loading…
Reference in New Issue