diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-26 18:00:16 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 14:58:06 +0300 |
commit | dcafd476dbc11eb6f2e7327d96868bf2c2d165a9 (patch) | |
tree | 659bcf3754e2002989f37c8a26d64c856880e698 /app/assets/javascripts/environments/stores | |
parent | 3c383f9f76a8cec6ecf69a012567cb70b8466897 (diff) |
Removes trailing whitespace
Diffstat (limited to 'app/assets/javascripts/environments/stores')
-rw-r--r-- | app/assets/javascripts/environments/stores/environmnets_store.js.es6 | 26 |
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} */ |