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>2023-03-14 15:08:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-14 15:08:06 +0300
commit363a1ea13879c755f9cd8018763d3a7bdf4bf1c7 (patch)
tree9e96d749ebb984b6650e28e79bb4a87ccf77d998 /app/assets/javascripts/vue_shared/components/markdown
parent6f9218ac84f0de0ebfddf2d4fbd79db881b2d46a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/markdown')
-rw-r--r--app/assets/javascripts/vue_shared/components/markdown/editor_mode_dropdown.vue2
-rw-r--r--app/assets/javascripts/vue_shared/components/markdown/markdown_editor.vue13
2 files changed, 8 insertions, 7 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/editor_mode_dropdown.vue b/app/assets/javascripts/vue_shared/components/markdown/editor_mode_dropdown.vue
index 6702a81e747..9ebf782a1d9 100644
--- a/app/assets/javascripts/vue_shared/components/markdown/editor_mode_dropdown.vue
+++ b/app/assets/javascripts/vue_shared/components/markdown/editor_mode_dropdown.vue
@@ -23,7 +23,7 @@ export default {
return this.value === 'markdown';
},
text() {
- return this.markdownEditorSelected ? __('View rich text') : __('View markdown');
+ return this.markdownEditorSelected ? __('Viewing markdown') : __('Viewing rich text');
},
},
};
diff --git a/app/assets/javascripts/vue_shared/components/markdown/markdown_editor.vue b/app/assets/javascripts/vue_shared/components/markdown/markdown_editor.vue
index d774ad465c3..d8e3691aa4a 100644
--- a/app/assets/javascripts/vue_shared/components/markdown/markdown_editor.vue
+++ b/app/assets/javascripts/vue_shared/components/markdown/markdown_editor.vue
@@ -49,16 +49,16 @@ export default {
required: false,
default: false,
},
- useBottomToolbar: {
- type: Boolean,
- required: false,
- default: false,
- },
autosaveKey: {
type: String,
required: false,
default: null,
},
+ quickActionsDocsPath: {
+ type: String,
+ required: false,
+ default: '',
+ },
},
data() {
return {
@@ -157,6 +157,7 @@ export default {
can-attach-file
:textarea-value="markdown"
:uploads-path="uploadsPath"
+ :quick-actions-docs-path="quickActionsDocsPath"
show-content-editor-switcher
class="bordered-box"
@enableContentEditor="onEditingModeChange('contentEditor')"
@@ -181,8 +182,8 @@ export default {
:render-markdown="renderMarkdown"
:uploads-path="uploadsPath"
:markdown="markdown"
+ :quick-actions-docs-path="quickActionsDocsPath"
:autofocus="contentEditorAutofocused"
- :use-bottom-toolbar="useBottomToolbar"
@initialized="setEditorAsAutofocused"
@change="updateMarkdownFromContentEditor"
@keydown="$emit('keydown', $event)"