summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/stores
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-26 16:00:16 +0100
committerFilipa Lacerda <filipa@gitlab.com>2016-11-16 11:58:06 +0000
commitdcafd476dbc11eb6f2e7327d96868bf2c2d165a9 (patch)
tree659bcf3754e2002989f37c8a26d64c856880e698 /app/assets/javascripts/environments/stores
parent3c383f9f76a8cec6ecf69a012567cb70b8466897 (diff)
downloadgitlab-ce-dcafd476dbc11eb6f2e7327d96868bf2c2d165a9.tar.gz
Removes trailing whitespace
Diffstat (limited to 'app/assets/javascripts/environments/stores')
-rw-r--r--app/assets/javascripts/environments/stores/environmnets_store.js.es626
1 files changed, 13 insertions, 13 deletions
diff --git a/app/assets/javascripts/environments/stores/environmnets_store.js.es6 b/app/assets/javascripts/environments/stores/environmnets_store.js.es6
index de51d94d2b5..c0e97413636 100644
--- a/app/assets/javascripts/environments/stores/environmnets_store.js.es6
+++ b/app/assets/javascripts/environments/stores/environmnets_store.js.es6
@@ -12,15 +12,15 @@
},
/**
- * In order to display a tree view we need to modify the received
- * data in to a tree structure based on `environment_type`
+ * In order to display a tree view we need to modify the received
+ * data in to a tree structure based on `environment_type`
* sorted alphabetically.
* In each children a `vue-` property will be added. This property will be
- * used to know if an item is a children mostly for css purposes. This is
+ * used to know if an item is a children mostly for css purposes. This is
* needed because the children row is a fragment instance and therfore does
* not accept non-prop attributes.
- *
- *
+ *
+ *
* @example
* it will transform this:
* [
@@ -30,7 +30,7 @@
* ]
* into this:
* [
- * { name: "review", children:
+ * { name: "review", children:
* [
* { name: "environment", environment_type: "review", vue-isChildren: true},
* { name: "environment_2", environment_type: "review", vue-isChildren: true}
@@ -38,8 +38,8 @@
* },
* {name: "environment_1", environment_type: null}
* ]
- *
- *
+ *
+ *
* @param {Array} environments List of environments.
* @returns {Array} Tree structured array with the received environments.
*/
@@ -56,13 +56,13 @@
if (environment.last_deployment.manual_actions) {
environment.last_deployment.manual_actions = environment.last_deployment.manual_actions.map((action) => Object.assign({}, action, {name: gl.text.humanize(action.name)}));
}
-
+
//transforms created date for deployment in a human readable format
if (environment.last_deployment.created_at) {
// TODO - how to do this without jquery
}
}
-
+
if (environment.environment_type !== null) {
const occurs = acc.find((element, index, array) => {
return element.children && element.name === environment.environment_type;
@@ -89,15 +89,15 @@
}, []).sort(this.sortByName);
this.state.environments = environmentsTree;
-
+
return environmentsTree;
},
/**
- * Given an array of environments, returns the number of environments
+ * Given an array of environments, returns the number of environments
* that have the given state.
*
- * @param {Array} environments
+ * @param {Array} environments
* @param {String} state
* @returns {Number}
*/