-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/plugin filter editor #48
Conversation
src/app/components-small/template-details/template-details.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/template-details/template-details.component.html
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,71 @@ | |||
<div> | |||
<div *ngIf="isFilterEmpty()" class="create-buttons"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be handled in the parent component (a node cannot create or delete itself normally...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant for empty filters ({}
). I.e. when a tab is newly created. The HTML class name create-buttons
is misleading, I changed it to set-buttons
.
src/app/components-small/plugin-filter-node/plugin-filter-node.component.html
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.html
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.html
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-editor/plugin-filter-editor.component.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Fabian Bühler <fabian.buehler@iaas.uni-stuttgart.de>
…/qhana-ui into feature/plugin-filter-editor
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Show resolved
Hide resolved
src/app/components-small/template-details/template-details.component.html
Outdated
Show resolved
Hide resolved
child components should not know their index in a list of their parent
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-node/plugin-filter-node.component.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but there is another bug with the tab editing form. The form does not contain the name or description of an existing tab (the sort key may have the same problem)
the filter string is a separate property and handled by the PluginFilterEditorComponent
The form didn't display the tab name/description/sortKey since I forgot to remove the filterString from the FormGroup. Now it works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be ready for merging then.
I added 2 more things:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one cosmetic/formulation change
src/app/components-small/plugin-filter-editor/plugin-filter-editor.component.html
Outdated
Show resolved
Hide resolved
src/app/components-small/plugin-filter-editor/plugin-filter-editor.component.html
Outdated
Show resolved
Hide resolved
Co-authored-by: Fabian Bühler <fabian.buehler@iaas.uni-stuttgart.de>
No description provided.