Adjust UI

This commit is contained in:
Hillel Coren 2021-09-24 16:44:28 +03:00
parent d421453bc1
commit 4d93b18f19
1 changed files with 6 additions and 2 deletions

View File

@ -121,8 +121,12 @@ class ViewScaffold extends StatelessWidget {
? Builder(builder: (context) {
return EditIconButton(
isVisible: entity.isEditable,
onPressed: () =>
editEntity(context: context, entity: entity),
onPressed: () {
if (state.uiState.isEditing) {
return;
}
editEntity(context: context, entity: entity);
},
);
})
: Container(),