Set destructive action only when prompt level is set to `Destructive` (#11154)

Oversight from #11015, where we added `PromptLevel::Destructive`, which
should be used when a prompt performs a "destructive" action (e.g.
deleting a file). However, we accidentally set `setHasDestructiveAction`
to `true` regardless of which prompt level would be specified

Release Notes:

- N/A
45d217f6e0Bennet Bo Fenner committed on 4/29/2024, 10:12:11 AM· committed by GitHubparentca187c8
1 file changedLine totals unavailable