Skip to content

Commit

Permalink
primeng: fix delete update buttons
Browse files Browse the repository at this point in the history
Co-Authored-by: Johnny Mariéthoz <[email protected]>
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
jma and Garfield-fr committed Jan 8, 2025
1 parent 4d94ef8 commit b86824d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<div class="flex align-items-stretch w-full">
<div class="flex align-items-center w-full">
<p-button
icon="fa fa-arrow-left"
[label]="'Back'|translate"
severity="secondary"
[text]="true"
(onClick)="goBack()"
/>
</div>
<div class="flex align-items-center gap-1 justify-content-end w-full">
<div class="flex justify-content-between flex-wrap mb-3">
<p-button
styleClass="flex-grow-1"
icon="fa fa-arrow-left"
[label]="'Back'|translate"
severity="secondary"
[text]="true"
(onClick)="goBack()"
/>
<div class="flex flex-wrap align-items-center gap-1">
<ng-content select="[beforeButton]"></ng-content>
@if (record() && adminMode().can) {
@if (useStatus() && useStatus().can && useStatus().url) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="flex flex-none gap-2 justify-content-end ml-2">
@if (adminMode.can) {
<!-- use button -->
@if (useStatus && useStatus.can && useStatus.url) {
@if (useStatus?.can && useStatus?.url) {
<p-button
[outlined]="true"
[ariaLabel]="'Use' | translate"
Expand All @@ -33,7 +33,7 @@
}

<!-- edit button -->
@if (updateStatus && updateStatus.can) {
@if (updateStatus?.can) {
<p-button
[outlined]="true"
[ariaLabel]="'Edit' | translate"
Expand All @@ -43,7 +43,7 @@
}

<!-- delete button -->
@if (deleteStatus) {
@if (deleteStatus?.can || deleteStatus?.message) {
<p-button
icon="fa fa-trash"
severity="danger"
Expand Down

0 comments on commit b86824d

Please sign in to comment.