Skip to content

Commit

Permalink
[AAE-19610] Fix duplicated buttons for date-time filter widget (#9382)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Feb 26, 2024
1 parent 672f70a commit bd9a9bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,4 @@
{{ getToValidationMessage() | translate: { requiredFormat: datetimePickerFormat } }}
</mat-error>
</mat-form-field>

<div class="adf-facet-buttons adf-facet-buttons--topSpace" *ngIf="!settings?.hideDefaultAction">
<button mat-button color="primary" type="button" (click)="clear()" data-automation-id="datetime-range-clear-btn">
{{ 'SEARCH.FILTER.ACTIONS.CLEAR' | translate }}
</button>
<button mat-button color="primary" type="submit" [disabled]="!form.valid" data-automation-id="datetime-range-apply-btn">
{{ 'SEARCH.FILTER.ACTIONS.APPLY' | translate }}
</button>
</div>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
[selector]="category.component.selector"
[settings]="category.component.settings">
</adf-search-widget-container>
<div class="adf-search-filter-card-actions">
<div
*ngIf="!category?.component?.settings?.hideDefaultAction"
class="adf-search-filter-card-actions"
>
<button mat-button class="adf-search-action-button" (click)="clear()" id="clear-filter-button">
{{ 'SEARCH.FILTER.BUTTONS.CLEAR' | translate }}
</button>
Expand Down

0 comments on commit bd9a9bb

Please sign in to comment.