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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
5e9f0bea
Commit
5e9f0bea
authored
Mar 29, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes after review
parent
5cad1401
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
19 deletions
+17
-19
app/assets/javascripts/environments/components/environment.js
...assets/javascripts/environments/components/environment.js
+0
-2
app/assets/javascripts/environments/components/environments_table.js
...javascripts/environments/components/environments_table.js
+15
-15
app/assets/javascripts/environments/services/environments_service.js
...javascripts/environments/services/environments_service.js
+2
-2
No files found.
app/assets/javascripts/environments/components/environment.js
View file @
5e9f0bea
...
...
@@ -132,8 +132,6 @@ export default Vue.component('environment-component', {
.
then
(
resp
=>
resp
.
json
())
.
then
((
response
)
=>
{
this
.
store
.
setfolderContent
(
folder
,
response
.
environments
);
})
.
then
(()
=>
{
this
.
isLoadingFolderContent
=
false
;
})
.
catch
(()
=>
{
...
...
app/assets/javascripts/environments/components/environments_table.js
View file @
5e9f0bea
...
...
@@ -73,23 +73,23 @@ export default {
</td>
</tr>
<t
r v-if="!isLoadingFolderContent"
is="environment-item"
v-for="children in model.children"
:model="children"
:can-create-deployment="canCreateDeployment"
:can-read-environment="canReadEnvironment"
:service="service"></tr>
<t
emplate v-else>
<tr
is="environment-item"
v-for="children in model.children"
:model="children"
:can-create-deployment="canCreateDeployment"
:can-read-environment="canReadEnvironment"
:service="service"></tr>
<tr v-if="!isLoadingFolderContent">
<td colspan="6" class="text-center">
<a :href="folderUrl(model)" class="btn btn-default">
Show all
</a>
</td>
</tr>
<tr>
<td colspan="6" class="text-center">
<a :href="folderUrl(model)" class="btn btn-default">
Show all
</a>
</td>
</tr>
</template>
</template>
</template>
</tbody>
</table>
...
...
app/assets/javascripts/environments/services/environments_service.js
View file @
5e9f0bea
...
...
@@ -7,6 +7,7 @@ Vue.use(VueResource);
export
default
class
EnvironmentsService
{
constructor
(
endpoint
)
{
this
.
environments
=
Vue
.
resource
(
endpoint
);
this
.
folderResults
=
3
;
}
get
(
scope
,
page
)
{
...
...
@@ -18,7 +19,6 @@ export default class EnvironmentsService {
}
getFolderContent
(
folderUrl
)
{
const
results
=
3
;
return
Vue
.
http
.
get
(
`
${
folderUrl
}
.json?per_page=
${
results
}
`
);
return
Vue
.
http
.
get
(
`
${
folderUrl
}
.json?per_page=
${
this
.
folderResults
}
`
);
}
}
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