Skip to content

Commit a884809

Browse files
committed
chore(toast): revert
1 parent 71fff87 commit a884809

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

core/src/components/toast/test/buttons/index.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,22 @@
6464
async function presentToastWithTwoButtons() {
6565
const opts = {
6666
message: "Can't send photo. Retry in 5 seconds.",
67-
buttons: [{ text: 'Cancel', role: 'cancel' }, { text: 'OK' }],
67+
buttons: [
68+
{
69+
text: 'retry',
70+
handler: () => {
71+
console.log('retry button clicked!');
72+
return false;
73+
},
74+
},
75+
{
76+
icon: 'close',
77+
role: 'cancel',
78+
handler: () => {
79+
console.log('close button clicked!');
80+
},
81+
},
82+
],
6883
};
6984

7085
return await presentToastWithOptions(opts);

0 commit comments

Comments
 (0)