Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jacver committed Apr 12, 2024
1 parent 6c51497 commit 57f02bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/components/messages/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ import { Subscription, timer } from 'rxjs';
</ng-container>
<ng-template #escapeOut>
<span *ngIf="msg.summary" class="p-message-summary" [attr.data-pc-section]="'summary'">{{ msg.summary }}</span>
<span *ngIf="msg.detail" class="p-message-detail" [attr.data-pc-section]="'detail'">{{ msg.detail }} test</span>
<span *ngIf="msg.detail" class="p-message-detail" [attr.data-pc-section]="'detail'">{{ msg.detail }}</span>
</ng-template>
<button class="p-message-close p-link" (click)="removeMessage(i)" *ngIf="msg.closable || (closable && msg.closable)" type="button" pRipple [attr.aria-label]="closeAriaLabel" [attr.data-pc-section]="'closebutton'">
<button class="p-message-close p-link" (click)="removeMessage(i)" *ngIf="closable && (msg.closable ?? true)" type="button" pRipple [attr.aria-label]="closeAriaLabel" [attr.data-pc-section]="'closebutton'">
<TimesIcon [styleClass]="'p-message-close-icon'" [attr.data-pc-section]="'closeicon'" />
</button>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/app/showcase/doc/messages/servicedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class ServiceDoc {

addMultiple() {
this.messageService.addAll([
{ severity: 'success', summary: 'Service Message', detail: 'Via MessageService', closable: true },
{ severity: 'info', summary: 'Info Message', detail: 'Via MessageService', closable: false }
{ severity: 'success', summary: 'Service Message', detail: 'Via MessageService' },
{ severity: 'info', summary: 'Info Message', detail: 'Via MessageService' }
]);
}

Expand Down Expand Up @@ -75,8 +75,8 @@ export class MessagesServiceDemo {
addMultiple() {
this.messageService.addAll([
{ severity: 'success', summary: 'Service Message', detail: 'Via MessageService', closable: true },
{ severity: 'info', summary: 'Info Message', detail: 'Via MessageService', closable: false }
{ severity: 'success', summary: 'Service Message', detail: 'Via MessageService' },
{ severity: 'info', summary: 'Info Message', detail: 'Via MessageService' }
]);
}
Expand Down

0 comments on commit 57f02bc

Please sign in to comment.