Welcome to mirror list, hosted at ThFree Co, Russian Federation.

locked_warning.vue « components « issue_show « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 19c7a11d87b7476fb0e088c63e5f08f16c89ee2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
import { __, sprintf } from '~/locale';

export default {
  computed: {
    currentPath() {
      return window.location.pathname;
    },
    alertMessage() {
      return sprintf(
        __(
          '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.',
        ),
        {
          linkStart: `<a href="${this.currentPath}" target="_blank" rel="nofollow">`,
          linkEnd: `</a>`,
        },
        false,
      );
    },
  },
};
</script>

<template>
  <div class="alert alert-danger" v-html="alertMessage"></div>
</template>