support for distinct in query designer

This commit is contained in:
Jan Prochazka
2022-01-02 10:02:31 +01:00
parent 1494fe3078
commit fb9069efe8
3 changed files with 22 additions and 0 deletions

View File

@@ -215,6 +215,22 @@
{ divider: true },
{ command: 'designer.undo' },
{ command: 'designer.redo' },
{ divider: true },
{
text: `Remove duplicates: ${$editorState.value?.settings?.isDistinct ? 'YES' : 'NO'}`,
onClick: () => {
handleChange(
{
...$editorState.value,
settings: {
...$editorState.value?.settings,
isDistinct: !$editorState.value?.settings?.isDistinct,
},
},
false
);
},
},
];
}
</script>