You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return { ok: true, successMessage: `Sent to ${selectedIds.length} users` };
134
+
},
135
+
},
136
+
],
137
+
},
138
+
}
139
+
```
140
+
141
+
### Confirmation dialog
142
+
143
+
Pass `confirm` to show a dialog before the action runs.
144
+
145
+
**String** — shown as the dialog title, no secondary message:
146
+
147
+
```ts
148
+
confirm: 'Are you sure you want to send invitation emails?',
149
+
```
150
+
151
+
**Object** — full control over the dialog. `{count}` in `message` is replaced with the number of selected records; `|` separates singular and plural forms:
152
+
153
+
```ts
154
+
confirm: {
155
+
title: 'Are you sure you want to archive the selected items?',
156
+
message: 'Archiving {count} item. This process is irreversible. | Archiving {count} items. This process is irreversible.',
157
+
yes: 'Archive',
158
+
no: 'Cancel',
159
+
},
160
+
```
161
+
162
+
Omit `confirm` entirely to skip the dialog and run the action immediately.
163
+
117
164
### Access Control
118
165
119
166
You can control who can use an action through the `allowed` function. This function receives:
0 commit comments