performChannelAction

Clears the active action if we've chosen Cancel, otherwise, stores the selected action as the currently active action, in activeChannelAction.

It also removes the selectedChannel if the action is Cancel.

Parameters

channelAction

The selected action.