actionTone
Overview
The intrinsic, placement-independent tone for an action. An action whose metadata declares tone wins (the override seam for the server or model config); otherwise a delete/destroy action is destructive and everything else is neutral.
Signature
actionTone(actionName, actionDetail)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| actionName | string | yes | The action / view name (e.g. create, destroy). |
| actionDetail | ActionInfo | no | The action's metadata, when available. |
Returns
"neutral" | "destructive"
The intrinsic tone.
Source
client/lib/utils/actionVariant.js:31