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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-24 12:09:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-24 12:09:41 +0300
commitff83f24eacc7c78884458d7261086b4f3a9547bb (patch)
treec7a79dae360f7cb127dd908a6f46a061535947e6 /app/assets/javascripts/issue_show
parentfe9cb6b25add197beb8a427371c49e7b43baeea5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issue_show')
-rw-r--r--app/assets/javascripts/issue_show/components/issuable_header_warnings.vue28
-rw-r--r--app/assets/javascripts/issue_show/index.js12
2 files changed, 0 insertions, 40 deletions
diff --git a/app/assets/javascripts/issue_show/components/issuable_header_warnings.vue b/app/assets/javascripts/issue_show/components/issuable_header_warnings.vue
deleted file mode 100644
index b6816be9eb8..00000000000
--- a/app/assets/javascripts/issue_show/components/issuable_header_warnings.vue
+++ /dev/null
@@ -1,28 +0,0 @@
-<script>
-import { mapState } from 'vuex';
-import Icon from '~/vue_shared/components/icon.vue';
-
-export default {
- components: {
- Icon,
- },
- computed: {
- ...mapState({
- confidential: ({ noteableData }) => noteableData.confidential,
- dicussionLocked: ({ noteableData }) => noteableData.discussion_locked,
- }),
- },
-};
-</script>
-
-<template>
- <div class="gl-display-inline-block">
- <div v-if="confidential" class="issuable-warning-icon inline">
- <icon class="icon" name="eye-slash" data-testid="confidential" />
- </div>
-
- <div v-if="dicussionLocked" class="issuable-warning-icon inline">
- <icon class="icon" name="lock" data-testid="locked" />
- </div>
- </div>
-</template>
diff --git a/app/assets/javascripts/issue_show/index.js b/app/assets/javascripts/issue_show/index.js
index fe4ff133145..e170d338408 100644
--- a/app/assets/javascripts/issue_show/index.js
+++ b/app/assets/javascripts/issue_show/index.js
@@ -1,8 +1,6 @@
import Vue from 'vue';
import issuableApp from './components/app.vue';
-import IssuableHeaderWarnings from './components/issuable_header_warnings.vue';
import { parseIssuableData } from './utils/parse_data';
-import { store } from '~/notes/stores';
export default function initIssueableApp() {
return new Vue({
@@ -17,13 +15,3 @@ export default function initIssueableApp() {
},
});
}
-
-export function issuableHeaderWarnings() {
- return new Vue({
- el: document.getElementById('js-issuable-header-warnings'),
- store,
- render(createElement) {
- return createElement(IssuableHeaderWarnings);
- },
- });
-}