mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(plugin-data-spreadsheet-new): CB-1876 show 'Disable all' action if one or more constraints applied
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ export class DataGridContextMenuOrderService {
|
||||
},
|
||||
isHidden: context => {
|
||||
const constraints = context.data.model.source.getAction(context.data.resultIndex, ResultSetConstraintAction);
|
||||
return constraints.orderConstraints.length < 2;
|
||||
return !constraints.orderConstraints.length;
|
||||
},
|
||||
isDisabled: context => context.data.model.isLoading(),
|
||||
onClick: async context => {
|
||||
|
||||
Reference in New Issue
Block a user