From ca2a5ec2689d7638124d1ec6694d54021ac47b1f Mon Sep 17 00:00:00 2001 From: Yossi Yadgar Date: Sun, 19 May 2019 18:26:01 +0300 Subject: [PATCH 1/4] set style as scoped --- browser/flagr-ui/src/components/DebugConsole.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/flagr-ui/src/components/DebugConsole.vue b/browser/flagr-ui/src/components/DebugConsole.vue index ea0e024d..3c971b3a 100644 --- a/browser/flagr-ui/src/components/DebugConsole.vue +++ b/browser/flagr-ui/src/components/DebugConsole.vue @@ -128,7 +128,7 @@ export default { } - From dee65c4bab46781c24aa63817e73e2a8cc7f8291 Mon Sep 17 00:00:00 2001 From: Yossi Yadgar Date: Wed, 29 May 2019 20:59:43 +0300 Subject: [PATCH 3/4] last design --- browser/flagr-ui/src/components/Flag.vue | 78 +++++++++++++----------- 1 file changed, 42 insertions(+), 36 deletions(-) diff --git a/browser/flagr-ui/src/components/Flag.vue b/browser/flagr-ui/src/components/Flag.vue index 88a0cb4b..d399b6c5 100644 --- a/browser/flagr-ui/src/components/Flag.vue +++ b/browser/flagr-ui/src/components/Flag.vue @@ -224,10 +224,15 @@
-
- Variant ID: {{ variant.id }} -
-
+ Variant ID: {{ variant.id }} + + + +
Save Variant @@ -236,24 +241,17 @@
- - - - - - - + + +

You can add a key-value pair (string -> string)

-
-
+ +
@@ -567,7 +565,6 @@ export default { }, data () { return { - refsIntervalId: false, loaded: false, dialogDeleteFlagVisible: false, dialogEditDistributionOpen: false, @@ -839,29 +836,15 @@ export default { }, toggleShowMdEditor () { this.showMdEditor = !this.showMdEditor - }, - setJsonEdiorModeWhenMounted () { - if (!this.$refs) { - return - } - - const jsonEditorRefs = Object.keys(this.$refs).filter(key => key.startsWith('json-editor')) - - jsonEditorRefs.forEach(ref => { - this.$refs[ref][0].editor.setMode('code') - }) - - clearInterval(this.refsIntervalId) } }, mounted () { this.fetchFlag() - this.refsIntervalId = setInterval(this.setJsonEdiorModeWhenMounted, 50) } } - From c813a1e1873d7ae368ba6ad2f96560b3f85553c7 Mon Sep 17 00:00:00 2001 From: Yossi Yadgar Date: Thu, 30 May 2019 08:02:07 +0300 Subject: [PATCH 4/4] last fix --- browser/flagr-ui/src/components/Flag.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/flagr-ui/src/components/Flag.vue b/browser/flagr-ui/src/components/Flag.vue index d399b6c5..f34ed9f1 100644 --- a/browser/flagr-ui/src/components/Flag.vue +++ b/browser/flagr-ui/src/components/Flag.vue @@ -243,7 +243,7 @@ -

You can add a key-value pair (string -> string)

+

You can add JSON in key/value pairs format.