debian-mirror-gitlab/app/assets/javascripts/issue_show/components/locked_warning.vue

18 lines
407 B
Vue
Raw Normal View History

2017-09-10 17:25:29 +05:30
<script>
2018-12-13 13:39:08 +05:30
export default {
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>
<div class="alert alert-danger">
Someone edited the issue at the same time you did. Please check out
2018-12-23 12:14:25 +05:30
<a :href="currentPath" target="_blank" rel="nofollow">the issue</a> and make sure your changes
will not unintentionally remove theirs.
2017-09-10 17:25:29 +05:30
</div>
</template>