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
Jérome Perrin
gitlab-ce
Commits
3db1b959
Commit
3db1b959
authored
Apr 03, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Buttons will be disabled when playable key is false
parent
1b85c5a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
app/assets/javascripts/environments/components/environment_actions.js
...avascripts/environments/components/environment_actions.js
+5
-1
app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js
...ripts/vue_pipelines_index/components/pipelines_actions.js
+5
-3
changelogs/unreleased/tc-fix-unplayable-build-action-404.yml
changelogs/unreleased/tc-fix-unplayable-build-action-404.yml
+4
-0
No files found.
app/assets/javascripts/environments/components/environment_actions.js
View file @
3db1b959
...
...
@@ -50,6 +50,7 @@ export default {
template
:
`
<div class="btn-group" role="group">
<button
type="button"
class="dropdown btn btn-default dropdown-new js-dropdown-play-icon-container has-tooltip"
data-container="body"
data-toggle="dropdown"
...
...
@@ -65,8 +66,11 @@ export default {
<ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions">
<button
type="button"
@click="onClickAction(action.play_path)"
class="js-manual-action-link no-btn">
class="js-manual-action-link no-btn btn"
:class="{ 'disabled': !actions.playable }"
:disabled="!action.playable">
${
playIconSvg
}
<span>
{{action.name}}
...
...
app/assets/javascripts/vue_pipelines_index/components/pipelines_actions.js
View file @
3db1b959
...
...
@@ -49,7 +49,7 @@ export default {
data-toggle="dropdown"
data-placement="top"
aria-label="Manual job"
:disabled="is
Loading
">
:disabled="is
Disabled
">
${
playIconSvg
}
<i class="fa fa-caret-down" aria-hidden="true"></i>
<i v-if="isLoading" class="fa fa-spinner fa-spin" aria-hidden="true"></i>
...
...
@@ -59,8 +59,10 @@ export default {
<li v-for="action in actions">
<button
type="button"
class="js-pipeline-action-link no-btn"
@click="onClickAction(action.path)">
class="js-pipeline-action-link no-btn btn"
:class="{ 'disabled': !actions.playable }"
@click="onClickAction(action.path)"
:disabled="!actions.playable">
${
playIconSvg
}
<span>{{action.name}}</span>
</button>
...
...
changelogs/unreleased/tc-fix-unplayable-build-action-404.yml
0 → 100644
View file @
3db1b959
---
title
:
Disable pipeline
merge_request
:
10052
author
:
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