summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/components/discussion_locked_widget.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/notes/components/discussion_locked_widget.vue')
-rw-r--r--app/assets/javascripts/notes/components/discussion_locked_widget.vue12
1 files changed, 10 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/components/discussion_locked_widget.vue b/app/assets/javascripts/notes/components/discussion_locked_widget.vue
index 2f215e36d5b..8ac3f6bea68 100644
--- a/app/assets/javascripts/notes/components/discussion_locked_widget.vue
+++ b/app/assets/javascripts/notes/components/discussion_locked_widget.vue
@@ -1,7 +1,6 @@
<script>
import { GlLink, GlIcon } from '@gitlab/ui';
import { __, sprintf } from '~/locale';
-import Issuable from '~/vue_shared/mixins/issuable';
import issuableStateMixin from '../mixins/issuable_state';
export default {
@@ -9,8 +8,17 @@ export default {
GlIcon,
GlLink,
},
- mixins: [Issuable, issuableStateMixin],
+ mixins: [issuableStateMixin],
+ props: {
+ issuableType: {
+ required: true,
+ type: String,
+ },
+ },
computed: {
+ issuableDisplayName() {
+ return this.issuableType.replace(/_/g, ' ');
+ },
projectArchivedWarning() {
return __('This project is archived and cannot be commented on.');
},