Skip to content

Commit b286276

Browse files
committed
chore: remove unavailable action of GridSettingAction and RowAction
1 parent 0b83684 commit b286276

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/row/row_action_sheet.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class GridRowActionSheet extends StatelessWidget {
2424
child: BlocBuilder<RowActionSheetBloc, RowActionSheetState>(
2525
builder: (context, state) {
2626
final cells = _RowAction.values
27+
.where((value) => value.enable())
2728
.map(
2829
(action) => _RowActionCell(
2930
action: action,

frontend/app_flowy/lib/workspace/presentation/plugins/grid/src/widgets/toolbar/grid_setting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class GridSettingList extends StatelessWidget {
8585
}
8686

8787
Widget _renderList() {
88-
final cells = GridSettingAction.values.map((action) {
88+
final cells = GridSettingAction.values.where((value) => value.enable()).map((action) {
8989
return _SettingItem(action: action);
9090
}).toList();
9191

0 commit comments

Comments
 (0)