From 903c81327f3e443a84ba24cfc68be635a3904722 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Mon, 21 Nov 2016 11:45:22 +0000 Subject: [PATCH 1/3] Remove v-html --- .../components/environment.js.es6 | 10 ++++---- .../components/environment_actions.js.es6 | 7 +++--- .../components/environment_item.js.es6 | 24 +++++++++++-------- .../vue_common_component/commit.js.es6 | 16 ++++++------- .../environments/environment_item_spec.js.es6 | 2 +- 5 files changed, 33 insertions(+), 26 deletions(-) diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index b769161e058..33d00b7de65 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -158,16 +158,18 @@ Available + class="badge js-available-environments-count"> + {{state.availableCounter}} +
  • Stopped + class="badge js-stopped-environments-count"> + {{state.stoppedCounter}} +
  • diff --git a/app/assets/javascripts/environments/components/environment_actions.js.es6 b/app/assets/javascripts/environments/components/environment_actions.js.es6 index edd39c02a46..39a2ed54e53 100644 --- a/app/assets/javascripts/environments/components/environment_actions.js.es6 +++ b/app/assets/javascripts/environments/components/environment_actions.js.es6 @@ -43,8 +43,7 @@
    -

    You don't have any environments right now. @@ -207,8 +204,7 @@

    -
    diff --git a/app/assets/javascripts/environments/components/environment_actions.js.es6 b/app/assets/javascripts/environments/components/environment_actions.js.es6 index 39a2ed54e53..d149a446e0b 100644 --- a/app/assets/javascripts/environments/components/environment_actions.js.es6 +++ b/app/assets/javascripts/environments/components/environment_actions.js.es6 @@ -53,8 +53,7 @@ data-method="post" rel="nofollow" class="js-manual-action-link"> - - + {{action.name}} diff --git a/app/assets/javascripts/environments/components/environment_stop.js.es6 b/app/assets/javascripts/environments/components/environment_stop.js.es6 index 2c732e50180..e6d66a0148c 100644 --- a/app/assets/javascripts/environments/components/environment_stop.js.es6 +++ b/app/assets/javascripts/environments/components/environment_stop.js.es6 @@ -14,8 +14,7 @@ }, template: ` - Date: Mon, 21 Nov 2016 13:57:27 +0000 Subject: [PATCH 3/3] Fixes identation --- .../javascripts/environments/components/environment.js.es6 | 4 ++-- .../environments/components/environment_item.js.es6 | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index 13d5b156f8f..952110744d4 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -159,7 +159,7 @@ Available {{state.availableCounter}} - +
  • @@ -167,7 +167,7 @@ Stopped {{state.stoppedCounter}} - +
  • diff --git a/app/assets/javascripts/environments/components/environment_item.js.es6 b/app/assets/javascripts/environments/components/environment_item.js.es6 index 6bac01632bf..da7db5c05bd 100644 --- a/app/assets/javascripts/environments/components/environment_item.js.es6 +++ b/app/assets/javascripts/environments/components/environment_item.js.es6 @@ -389,8 +389,7 @@ template: `
    - {{model.name}} @@ -412,8 +411,7 @@ - + {{deploymentInternalId}}