Skip to content

Commit

Permalink
Reinstate the button for deleting point buildings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed May 29, 2024
1 parent b4689ea commit f5d3988
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/screens/editor/building.dart
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ class _BuildingEditorPaneState extends ConsumerState<BuildingEditorPane> {
},
child: Text(loc.buildingMoreButton.toUpperCase() + '...'),
),
if (false && !building.deleted && widget.building != null)
if (!building.deleted &&
widget.building != null &&
building.canDelete)
TextButton(
child: Text(loc.editorDeleteButton.toUpperCase()),
onPressed: () async {
Expand Down

0 comments on commit f5d3988

Please sign in to comment.