enableAlert

Enables or disables an existing alert.

Return

A new instance of the alert with the updated enabled state.

Parameters

alert

The custom alert to enable or disable.

enabled

true to enable the alert, false to disable it.