-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementation (category field): #29563 Change category selection fro…
…m PrimeNG sidebar to dialog (#29770) ### Proposed Changes * Category selection is displayed in a PrimeNG dialog instead of a sidebar ### Screenshots Before https://github.com/user-attachments/assets/e0549b6c-4992-4e1a-b5cb-fd4125566930 After https://github.com/user-attachments/assets/f992c914-5119-4923-9c78-c803a42daa48
- Loading branch information
Showing
12 changed files
with
231 additions
and
146 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
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
24 changes: 12 additions & 12 deletions
24
...lib/fields/dot-edit-content-category-field/dot-edit-content-category-field.component.html
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,26 +1,26 @@ | ||
@if (store.selected().length) { | ||
@if (store.confirmedCategories().length) { | ||
<dot-category-field-chips | ||
data-testId="category-chip-list" | ||
[categories]="store.selected()" | ||
(remove)="store.removeSelected($event)" /> | ||
[categories]="store.confirmedCategories()" | ||
(remove)="store.removeConfirmedCategories($event)" /> | ||
} | ||
|
||
<div class="dot-category-field__select"> | ||
<button | ||
type="button" | ||
(click)="openCategoriesSidebar()" | ||
[disabled]="$showCategoriesSidebar()" | ||
(click)="openCategoriesDialog()" | ||
[disabled]="$showCategoriesDialog()" | ||
[label]="'edit.content.category-field.show-categories-dialog' | dm" | ||
class="p-button-sm p-button-text p-button-secondary" | ||
data-testId="show-sidebar-btn" | ||
data-testId="show-dialog-btn" | ||
pButton></button> | ||
</div> | ||
|
||
@if ($showCategoriesSidebar()) { | ||
@defer (when $showCategoriesSidebar()) { | ||
<dot-category-field-sidebar | ||
[visible]="$showCategoriesSidebar()" | ||
(closedSidebar)="closeCategoriesSidebar()" | ||
data-testId="sidebar-placeholder" /> | ||
@if ($showCategoriesDialog()) { | ||
@defer (when $showCategoriesDialog()) { | ||
<dot-category-field-dialog | ||
[isVisible]="$showCategoriesDialog()" | ||
(closedDialog)="closeCategoriesDialog()" | ||
data-testId="dialog-placeholder" /> | ||
} | ||
} |
Oops, something went wrong.