diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-17 20:25:56 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-17 20:25:56 +0300 |
commit | 9c22974cd14f41ed156ced0a6742dbae7412b0db (patch) | |
tree | 0fffe3714559e8574b4ac4d3b99d1253e1a879d5 /app/assets/javascripts/vue_shared | |
parent | 09338e397c95b51a7c515524d7f3eb5f4eed2fb4 (diff) |
Rename a few attribute suffixes from `_url` to `_path`
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/field.vue | 12 | ||||
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/toolbar.vue | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/field.vue b/app/assets/javascripts/vue_shared/components/markdown/field.vue index 4e1d623647e..11eaeb89c4c 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/field.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/field.vue @@ -5,12 +5,12 @@ export default { props: { - markdownPreviewUrl: { + markdownPreviewPath: { type: String, required: false, default: '', }, - markdownDocs: { + markdownDocsPath: { type: String, required: true, }, @@ -19,7 +19,7 @@ required: false, default: true, }, - quickActionsDocs: { + quickActionsDocsPath: { type: String, required: false, }, @@ -52,7 +52,7 @@ } else { this.markdownPreviewLoading = true; this.$http.post( - this.markdownPreviewUrl, + this.markdownPreviewPath, { /* Can't use `$refs` as the component is technically in the parent component @@ -117,8 +117,8 @@ </i> </a> <markdown-toolbar - :markdown-docs="markdownDocs" - :quick-actions-docs="quickActionsDocs" + :markdown-docs-path="markdownDocsPath" + :quick-actions-docs-path="quickActionsDocsPath" /> </div> </div> diff --git a/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue b/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue index 13402f34c5b..65fe7bbd94e 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/toolbar.vue @@ -1,11 +1,11 @@ <script> export default { props: { - markdownDocs: { + markdownDocsPath: { type: String, required: true, }, - quickActionsDocs: { + quickActionsDocsPath: { type: String, required: false, }, @@ -16,24 +16,24 @@ <template> <div class="comment-toolbar clearfix"> <div class="toolbar-text"> - <template v-if="!quickActionsDocs && markdownDocs"> + <template v-if="!quickActionsDocsPath && markdownDocsPath"> <a - :href="markdownDocs" + :href="markdownDocsPath" target="_blank" tabindex="-1"> Markdown is supported </a> </template> - <template v-if="quickActionsDocs && markdownDocs"> + <template v-if="quickActionsDocsPath && markdownDocsPath"> <a - :href="markdownDocs" + :href="markdownDocsPath" target="_blank" tabindex="-1"> Markdown </a> and <a - :href="quickActionsDocs" + :href="quickActionsDocsPath" target="_blank" tabindex="-1"> quick actions |