Add HTML-rendering to the alert util
In some cases, error messages that are provided by the backend contain HTML tags, for example links to relevant documentation. This change adds an option to the alert-js utility, to allow the provided message to be rendered as HTML, so we can show those error messages correctly.
显示
- app/assets/javascripts/alert.js 15 个添加, 0 个删除app/assets/javascripts/alert.js
- ee/app/assets/javascripts/security_dashboard/components/shared/vulnerability_report/vulnerability_list_graphql.vue 6 个添加, 44 个删除...hared/vulnerability_report/vulnerability_list_graphql.vue
- ee/spec/frontend/security_dashboard/components/shared/vulnerability_report/vulnerability_list_graphql_spec.js 7 个添加, 8 个删除...d/vulnerability_report/vulnerability_list_graphql_spec.js
- spec/frontend/alert_spec.js 34 个添加, 0 个删除spec/frontend/alert_spec.js
加载中
想要评论请 注册 或 登录