Skip to content

Commit

Permalink
final reactive toast button changes
Browse files Browse the repository at this point in the history
  • Loading branch information
emirdur committed Oct 27, 2024
1 parent 1352fcc commit 8bc41ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div id="button">
<button type="button" class="btn" (click)="showSuccess()" [style]="style">{{ label }}</button>
<button type="button" class="btn" (click)="handleClick()" [style]="style">{{ label }}</button>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export class ToastButtonComponent {

constructor(private messageService: MessageService) {}

showSuccess() {
handleClick() {
this.onClick();
setTimeout(() => {
this.messageService.add({
severity: 'success',
Expand Down

0 comments on commit 8bc41ca

Please sign in to comment.