mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: don't delete the property if it shouldn't be allowed (#1633)
This commit is contained in:
parent
ddc99d646c
commit
c5b15daac4
@ -218,7 +218,9 @@ class _DeleteFieldButton extends StatelessWidget {
|
||||
LocaleKeys.grid_field_delete.tr(),
|
||||
color: enable ? null : Theme.of(context).disabledColor,
|
||||
),
|
||||
onTap: () => onDeleted?.call(),
|
||||
onTap: () {
|
||||
if (enable) onDeleted?.call();
|
||||
},
|
||||
onHover: (_) => popoverMutex.close(),
|
||||
);
|
||||
return Padding(
|
||||
|
Loading…
Reference in New Issue
Block a user