msgtplui - Preview Dialog - If there are no examples, show a decent error message
authorTim Otten <totten@civicrm.org>
Fri, 17 Sep 2021 05:13:13 +0000 (22:13 -0700)
committerCiviCRM <info@civicrm.org>
Fri, 24 Sep 2021 04:04:30 +0000 (21:04 -0700)
commitc2c610b46c3c27513e17aaeb773929b9367d86ab
treeb9daa13a2c160e092362507e2b7bf70f55b43e89
parent8174b2afd97e4511be356b8ed28937e45cd2f00b
msgtplui - Preview Dialog - If there are no examples, show a decent error message

Use Case: You edit a msgtpl for which there are no examples.

Before: The dialog opens. The dialog doesn't really work, because there are no examples.
Rendering attempts yield errors.

After: The dialog declines open. A more pointed error is displayed.
ext/msgtplui/ang/msgtplui/Edit.js