From 399ec2f328f56c1f81c454ecedfb6b99eaf93c42 Mon Sep 17 00:00:00 2001
From: LeoQi <QibinZheng2014@tongji.edu.cn>
Date: Thu, 20 Sep 2018 09:38:01 +0800
Subject: fix testsuite name bugs and improve some ui details

JIRA: BOTTLENECK-247

fix the bug where the testsuite name contains Chinese characters.
add license header automatically when a testcase created.
ui improvements:
workflow panel only turns up when a testcase executes.
add grafana pages in the webpage 'Test Result'.
add the highlight effect on the navigation item.

Change-Id: If0ddf82fd4630128f2c4dd7fdde30f037e5bfba7
Signed-off-by: LeoQi <QibinZheng2014@tongji.edu.cn>
---
 test-scheduler/ui/src/components/testcase_content.vue | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'test-scheduler/ui/src/components/testcase_content.vue')

diff --git a/test-scheduler/ui/src/components/testcase_content.vue b/test-scheduler/ui/src/components/testcase_content.vue
index 49169cee..a9ea78e7 100644
--- a/test-scheduler/ui/src/components/testcase_content.vue
+++ b/test-scheduler/ui/src/components/testcase_content.vue
@@ -1,7 +1,7 @@
 <template>
   <div class="wrapper wrapper-content animated fadeIn">
     <div class="row" style="margin-bottom: 20px;">
-      <div class="col-md-8">
+      <div class="col-md-12">
         <ol class="breadcrumb" style="padding-left: 20px; font-size: 17px;">
           <li>
             <router-link to="/" >root</router-link>
@@ -57,7 +57,7 @@
       </div>
     </div>
     <hr />
-    <div class="row">
+    <div class="row" v-show="runYet">
       <div class="col-lg-12">
           <div class="ibox">
               <div class="ibox-title">
@@ -98,7 +98,9 @@ export default {
           workflowId: '',
           wfloading: false,
           wfJson: '',
-          saveSignal: false
+          wfComplete: false,
+          saveSignal: false,
+          runYet: false,
       }
     },
     created: function() {
@@ -121,6 +123,9 @@ export default {
       runTestcase: function(){
         var self = this;
         var msgTitle = "RUN -- TESTCASE";
+        if(!self.runYet) {
+          self.runYet = true;
+        }
         $.ajax({
             url: this.global.SERVER_ADDR + "execute/testcase",
             method: "POST",
-- 
cgit 1.2.3-korg

