You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2020/06/16 14:22:02 UTC

[airavata-django-portal] 02/02: AIRAVATA-3285 In range widget, round displayed current value

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

machristie pushed a commit to branch AIRAVATA-3285--Interactive-output-view-providers
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit ed01dd283a460f22c280284d6fdbc4ea6ca15622
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Jun 16 09:58:54 2020 -0400

    AIRAVATA-3285 In range widget, round displayed current value
---
 .../interactive-parameters/InteractiveParameterRangeWidget.vue       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/interactive-parameters/InteractiveParameterRangeWidget.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/interactive-parameters/InteractiveParameterRangeWidget.vue
index 8e8e9d2..5f134e9 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/interactive-parameters/InteractiveParameterRangeWidget.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/output-displays/interactive-parameters/InteractiveParameterRangeWidget.vue
@@ -11,7 +11,7 @@
       @mouseup="mouseUp"
       @keyup="keyUp"
     />
-    <div>Value: {{ currentValue }}</div>
+    <small>Value: {{ roundedValue }}</small>
   </div>
 </template>
 
@@ -38,6 +38,9 @@ export default {
     },
     initialValue() {
       return parseFloat(this.value);
+    },
+    roundedValue() {
+      return this.currentValue ? this.currentValue.toFixed(2) : null;
     }
   },
   methods: {