You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/06/25 05:54:31 UTC

[cloudstack-primate] 01/02: views: show doclink icon for custom action forms

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git

commit 2da9ad3b30af66a17970e19b5aa25850c62126cf
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Jun 24 14:20:36 2020 +0530

    views: show doclink icon for custom action forms
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/views/AutogenView.vue | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/views/AutogenView.vue b/src/views/AutogenView.vue
index 3afcb88..c8a0f5f 100644
--- a/src/views/AutogenView.vue
+++ b/src/views/AutogenView.vue
@@ -82,7 +82,6 @@
     <div v-show="showAction">
       <keep-alive v-if="currentAction.component">
         <a-modal
-          :title="$t(currentAction.label)"
           :visible="showAction"
           :closable="true"
           style="top: 20px;"
@@ -92,6 +91,16 @@
           centered
           width="auto"
         >
+          <span slot="title">
+            {{ $t(currentAction.label) }}
+            <a
+              v-if="currentAction.docHelp || $route.meta.docHelp"
+              style="margin-left: 5px"
+              :href="$config.docBase + '/' + (currentAction.docHelp || $route.meta.docHelp)"
+              target="_blank">
+              <a-icon type="question-circle-o"></a-icon>
+            </a>
+          </span>
           <component
             :is="currentAction.component"
             :resource="resource"