Commit 41502bc0 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Add gl-alert UI component

parent 939284f1
Pipeline #31414916 failed with stages
in 8 minutes and 58 seconds
<script>
import { Alert } from '@gitlab-org/gitlab-ui';
export default {
components: {
'gl-alert': Alert,
},
computed: {
currentPath() {
return window.location.pathname;
......@@ -9,12 +14,15 @@
</script>
<template>
<div class="alert alert-danger">
<gl-alert
show
variant="danger"
>
Someone edited the issue at the same time you did. Please check out
<a
:href="currentPath"
target="_blank"
rel="nofollow">the issue</a>
and make sure your changes will not unintentionally remove theirs.
</div>
</gl-alert>
</template>
......@@ -164,9 +164,9 @@
version "1.29.0"
resolved "https://registry.yarnpkg.com/@gitlab-org/gitlab-svgs/-/gitlab-svgs-1.29.0.tgz#03b65b513f9099bbda6ecf94d673a2952f8c6c70"
"@gitlab-org/gitlab-ui@^1.7.0":
version "1.7.0"
resolved "https://registry.yarnpkg.com/@gitlab-org/gitlab-ui/-/gitlab-ui-1.7.0.tgz#cf37b7262f90af42664d4d1600917271a8f8fb28"
"@gitlab-org/gitlab-ui@https://gitlab.com/gitlab-org/gitlab-ui/-/jobs/101990860/artifacts/raw/gitlab-ui.42-add-bootstrap-vue-s-alert.tgz":
version "1.7.1"
resolved "https://gitlab.com/gitlab-org/gitlab-ui/-/jobs/101990860/artifacts/raw/gitlab-ui.42-add-bootstrap-vue-s-alert.tgz#1f29bc303f1d954780f476190109e920e3c296af"
dependencies:
"@gitlab-org/gitlab-svgs" "^1.23.0"
bootstrap-vue "^2.0.0-rc.11"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment