deb-horizon/releasenotes/notes/use-toast-instead-of-alert-ef2f7dec2bd1121a.yaml
Cindy Lu f2c0504ccc replace horizon.alert used by client-side with horizon.toast
Only horizon.alert() calls. Not changing the django message
template.

Change-Id: I3f2f4ea6a64abbd073efd80a434094ca1baaf0b5
2016-08-19 10:45:19 -07:00

16 lines
576 B
YAML

---
prelude: >
In an effort to establish Angular conventions,
use the framework's toastService rather than the
legacy horizon.alert(...) in client-side code.
horizon.alert is still used by the django messaging
framework, so horizon.messages.js still exists.
deprecations:
- All previous instances of horizon.alert(...) used by
client-side have been replaced with horizon.toast.
Alert messages via horizon.alert(...) should be
avoided when writing new JavaScript code.
horizon.toast.add('error', gettext(...)) should be
used instead.