Migrate createFlash to glAlert in Vulnerability Details Header
The following discussion from !50938 (merged) should be addressed:
-
@svedova started a discussion: (+1 comment)
I see we're hitting some deprecated components with
These deprecated components are in the process of being migrated. Please consider using Pajamas components instead. * createFlash
but I think we should stick to minimal changes when possible. Maybe migrate away from
deprecatedCreateFlash
in a follow-up MR.
Implementation plan
-
frontend ee/app/assets/javascripts/vulnerabilities/components/header.vue
containscreateFlash
instances. We need to replace withgl-alert
component from GitLab UI.
The current behaviour is that we display the error message above the vulnerability header. I believe we can keep the same behaviour when we upgrade to GlAlert
.
Edited by Savas Vedova