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
32c727cb
Commit
32c727cb
authored
Oct 25, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
98a0f72d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/environments/environments_bundle.js.es6
...ssets/javascripts/environments/environments_bundle.js.es6
+4
-4
app/assets/javascripts/environments/stores/environmnets_store.js.es6
...javascripts/environments/stores/environmnets_store.js.es6
+1
-1
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+2
-2
No files found.
app/assets/javascripts/environments/environments_bundle.js.es6
View file @
32c727cb
...
...
@@ -24,7 +24,7 @@ $(() => {
};
});
};
gl.EnvironmentsListApp = new Vue({
el: '#environments-list-view',
...
...
@@ -49,7 +49,7 @@ $(() => {
return filterEnvironments(this.state.environments, 'stopped').length;
},
counAvailable () {
coun
t
Available () {
return filterEnvironments(this.state.environments, 'available').length;
}
},
...
...
@@ -86,10 +86,10 @@ $(() => {
*/
getQueryParameter(param) {
return window.location.search.substring(1).split('&').reduce((acc, param) => {
acc[param.split('=')[0]] = param.split('=')[1];
const paramSplited = param.split('=');
acc[paramSplited[0]] = paramSplited[1];
return acc;
}, {})[param];
}
});
});
app/assets/javascripts/environments/stores/environmnets_store.js.es6
View file @
32c727cb
...
...
@@ -41,7 +41,7 @@
* @param {Array} environments List of environments.
* @returns {Array} Tree structured array with the received environments.
*/
storeEnvironments(environments) {
storeEnvironments(environments
= []
) {
const environmentsTree = environments.reduce((acc, environment) => {
const data = Object.assign({}, environment);
...
...
app/views/projects/environments/index.html.haml
View file @
32c727cb
...
...
@@ -12,7 +12,7 @@
=
link_to
project_environments_path
(
@project
)
do
Available
%span
.badge.js-available-environments-count
{{counAvailable}}
{{coun
t
Available}}
%li
{
class:
(
'active'
if
@scope
==
'stopped'
)}
=
link_to
project_environments_path
(
@project
,
scope: :stopped
)
do
...
...
@@ -41,7 +41,7 @@
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
.table-holder
{
"v-if"
=>
"!loading && state.environments"
}
.table-holder
{
"v-if"
=>
"!loading && state.environments
.length
"
}
%table
.table.ci-table.environments
%thead
%th
Environment
...
...
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