There is no built-in one-click option to switch between these two modes.
As a workaround, you can configure the router for each mode separately and export a backup of each configuration. When you need to switch modes, you can restore the corresponding backup through LuCI.