You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2019/11/08 03:44:48 UTC

[incubator-apisix-dashboard] branch master updated: enable to open websocket (#72)

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

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new ae7dcfc  enable to open websocket (#72)
ae7dcfc is described below

commit ae7dcfcdc19f04c17d0dbdd697a7f5b97d2fd0da
Author: Lien <li...@users.noreply.github.com>
AuthorDate: Fri Nov 8 11:44:41 2019 +0800

    enable to open websocket (#72)
---
 src/components/PluginDialog/index.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/components/PluginDialog/index.vue b/src/components/PluginDialog/index.vue
index 6895914..2231a81 100644
--- a/src/components/PluginDialog/index.vue
+++ b/src/components/PluginDialog/index.vue
@@ -125,6 +125,14 @@
             :placeholder="key"
             @input="onPropertyChange(key, $event)"
           />
+
+          <el-switch
+            v-if="schema.properties[key].type === 'boolean' && !schema.properties[key].hasOwnProperty('enum')"
+            v-model="data[key]"
+            active-color="#13ce66"
+            inactive-color="#ff4949"
+          />
+
         </el-form-item>
       </el-form>
       <span