Currently, I am utilizing the confirm.service from PrimeNG in my application. My goal is to display an array of messages to the user with only one message shown at a time along with an Accept button.
However, my current code is only displaying the last message in the array.
messages.forEach(message => {
this.utility.openConfirmDialog(this._confirmationService, {
message: message.message + ' ' + message.remainingMessage,
header: 'Attention',
showReject: false
}).subscribe(response => response);
});
I wish for the confirmDialog to pause until the user clicks on the button.
Thank you in advance!