-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the data filter popover to the new style. closes #5287 Task: 4358098 Signed-off-by: Rémi Rahir (rar) <[email protected]>
- Loading branch information
1 parent
6aeccfb
commit 10a07d4
Showing
6 changed files
with
77 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
src/components/filters/filter_menu_item/filter_menu_value_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
<templates> | ||
<t t-name="o-spreadsheet-FilterMenuValueItem"> | ||
<div | ||
t-on-click="this.props.onClick" | ||
t-on-pointermove="this.props.onMouseMove" | ||
class="o-filter-menu-item o-filter-menu-value" | ||
t-ref="menuValueItem" | ||
t-att-class="{'selected': this.props.isSelected}"> | ||
<div> | ||
<div class="o-filter-menu-value-checked"> | ||
<span t-if="this.props.isChecked">✓</span> | ||
</div> | ||
</div> | ||
<div class="o-filter-menu-value-text text-truncate"> | ||
<t t-set="value"> | ||
<t t-if="this.props.value === ''">(Blanks)</t> | ||
<t t-else="" t-esc="this.props.value"/> | ||
</div> | ||
</t> | ||
<!-- toString because t-set with a body creates a LazyValue instead of a string --> | ||
<Checkbox | ||
name="value.toString()" | ||
value="this.props.isChecked" | ||
onChange="this.props.onClick" | ||
className="'p-2 w-100 pe-auto text-truncate'" | ||
label="value.toString()" | ||
/> | ||
</div> | ||
</t> | ||
</templates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.