2017-09-10 17:25:29 +05:30
< script >
2022-06-21 17:19:12 +05:30
import { GlSprintf , GlLink , GlAlert } from '@gitlab/ui' ;
2021-11-18 22:05:49 +05:30
import { _ _ } from '~/locale' ;
const alertMessage = _ _ (
'Someone edited the issue at the same time you did. Please check out %{linkStart}the issue%{linkEnd} and make sure your changes will not unintentionally remove theirs.' ,
) ;
2019-09-30 21:07:59 +05:30
2018-12-13 13:39:08 +05:30
export default {
2021-11-18 22:05:49 +05:30
alertMessage ,
components : {
GlSprintf ,
GlLink ,
2022-06-21 17:19:12 +05:30
GlAlert ,
2021-11-18 22:05:49 +05:30
} ,
2018-12-13 13:39:08 +05:30
computed : {
currentPath ( ) {
return window . location . pathname ;
2017-09-10 17:25:29 +05:30
} ,
2018-12-13 13:39:08 +05:30
} ,
} ;
2017-09-10 17:25:29 +05:30
< / script >
< template >
2022-06-21 17:19:12 +05:30
< gl-alert variant = "danger" class = "gl-mb-5" :dismissible = "false" >
2021-11-18 22:05:49 +05:30
< gl-sprintf :message = "$options.alertMessage" >
< template # link = "{ content }" >
< gl-link :href = "currentPath" target = "_blank" rel = "nofollow" >
{ { content } }
< / gl-link >
< / template >
< / gl-sprintf >
2022-06-21 17:19:12 +05:30
< / gl-alert >
2017-09-10 17:25:29 +05:30
< / template >