Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c5741e57
Commit
c5741e57
authored
Dec 14, 2016
by
Fatih Acet
Committed by
Nick Thomas
Dec 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix consistent typo in environment.js
environmnets => environments
parent
75b64deb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/environments/components/environment.js.es6
...ts/javascripts/environments/components/environment.js.es6
+5
-5
No files found.
app/assets/javascripts/environments/components/environment.js.es6
View file @
c5741e57
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
* The environments array is a recursive tree structure and we need to filter
* The environments array is a recursive tree structure and we need to filter
* both root level environments and children environments.
* both root level environments and children environments.
*
*
* In order to acomplish that, both `filterState` and `filterEnvironm
ne
tsByState`
* In order to acomplish that, both `filterState` and `filterEnvironm
en
tsByState`
* functions work together.
* functions work together.
* The first one works as the filter that verifies if the given environment matches
* The first one works as the filter that verifies if the given environment matches
* the given state.
* the given state.
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
* @param {Array} array
* @param {Array} array
* @return {Array}
* @return {Array}
*/
*/
const filterEnvironm
ne
tsByState = (fn, arr) => arr.map((item) => {
const filterEnvironm
en
tsByState = (fn, arr) => arr.map((item) => {
if (item.children) {
if (item.children) {
const filteredChildren = filterEnvironm
ne
tsByState(fn, item.children).filter(Boolean);
const filteredChildren = filterEnvironm
en
tsByState(fn, item.children).filter(Boolean);
if (filteredChildren.length) {
if (filteredChildren.length) {
item.children = filteredChildren;
item.children = filteredChildren;
return item;
return item;
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
computed: {
computed: {
filteredEnvironments() {
filteredEnvironments() {
return filterEnvironm
ne
tsByState(filterState(this.visibility), this.state.environments);
return filterEnvironm
en
tsByState(filterState(this.visibility), this.state.environments);
},
},
scope() {
scope() {
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
},
},
/**
/**
* Fetches all the environm
ne
ts and stores them.
* Fetches all the environm
en
ts and stores them.
* Toggles loading property.
* Toggles loading property.
*/
*/
created() {
created() {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment