Switch to use gl-alert instead of createFlash
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=326398)
</details>
<!--IssueSummary end-->
The following discussion from !57442 should be addressed:
- [ ] @svedova started a [discussion](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57442#note_539164716): (+2 comments)
> **question** we should prefer using `gl-alert` over `createFlash`. Also, the test for the `error` state is missing :see_no_evil:
- https://gitlab.com/gitlab-org/gitlab/blob/3273c9659767748756b515c530fc996b2529c3a8/app/assets/javascripts/projects/compare/components/revision_dropdown.vue#L97
- https://gitlab.com/gitlab-org/gitlab/blob/3273c9659767748756b515c530fc996b2529c3a8/app/assets/javascripts/projects/compare/components/revision_dropdown.vue#L76
issue