Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

implemented remove condition #116

Merged
merged 2 commits into from Jan 4, 2021
Merged

implemented remove condition #116

merged 2 commits into from Jan 4, 2021

Conversation

guergana
Copy link
Contributor

  • quiet button will be added when new version of wikit is released
  • added removeCondition action and mutation
  • added tests

Copy link
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking this on! We should extract the component, but that should be relatively

@@ -19,12 +19,19 @@
:placeholder="$i18n('query-builder-input-value-placeholder')"
:disabled="isTextInputDisabled()"
/>
<Button
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be its own simple subcomponent as well, similar to ValueTypeDropdown and PropertyLookup. The idea is to try to maintain "one level of abstraction" within the template as well.

But that could also be done in a follow-up pull request

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it in a followup. :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

conditionId: '0.123',
};
const state: RootState = {
conditionRows: [ {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can replace this first object with the keptRow variable from above :)

+ quiet button will be added when new version of wikit is released
+ added removeCondition action and mutation
+ added tests
@guergana guergana merged commit 3f65a9e into master Jan 4, 2021
@guergana guergana deleted the removeCondition branch January 4, 2021 10:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants