Skip to content

Commit

Permalink
pending message: use the warning color and show a spinner
Browse files Browse the repository at this point in the history
Show the warning color so the user doesn't just ignore the page and closes it,
since it could indicate that something went wrong.

And to make it clear that the page is waiting on new information from the backend
show a small spinner.
  • Loading branch information
lazka committed Oct 31, 2023
1 parent 7850c33 commit dd784eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dbp-mono-processpayment.js
Original file line number Diff line number Diff line change
Expand Up @@ -1213,16 +1213,16 @@ class DbpMonoProcessPayment extends ScopedElementsMixin(DBPMonoLitElement) {
</div>
<div class="${classMap({hidden: !this.showPending || this.modalIsVisible})}">
<dbp-inline-notification type="info">
<dbp-inline-notification type="warning">
<div slot="body">
<p>${i18n.t('pending.info')}</p>
<p><dbp-mini-spinner text=" "></dbp-mini-spinner> ${i18n.t('pending.info')}</p>
<p>
${i18n.t('pending.info-canceled', {
'return-name': this.returnHostname,
})}
</p>
<dbp-button
type="is-info"
type="is-warning"
no-spinner-on-click
@click="${() => {
window.location.href = this.returnUrl;
Expand Down

0 comments on commit dd784eb

Please sign in to comment.