Commit 3db1b959 authored by Filipa Lacerda's avatar Filipa Lacerda

Buttons will be disabled when playable key is false

parent 1b85c5a7
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
template: ` template: `
<div class="btn-group" role="group"> <div class="btn-group" role="group">
<button <button
type="button"
class="dropdown btn btn-default dropdown-new js-dropdown-play-icon-container has-tooltip" class="dropdown btn btn-default dropdown-new js-dropdown-play-icon-container has-tooltip"
data-container="body" data-container="body"
data-toggle="dropdown" data-toggle="dropdown"
...@@ -65,8 +66,11 @@ export default { ...@@ -65,8 +66,11 @@ export default {
<ul class="dropdown-menu dropdown-menu-align-right"> <ul class="dropdown-menu dropdown-menu-align-right">
<li v-for="action in actions"> <li v-for="action in actions">
<button <button
type="button"
@click="onClickAction(action.play_path)" @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} ${playIconSvg}
<span> <span>
{{action.name}} {{action.name}}
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
data-toggle="dropdown" data-toggle="dropdown"
data-placement="top" data-placement="top"
aria-label="Manual job" aria-label="Manual job"
:disabled="isLoading"> :disabled="isDisabled">
${playIconSvg} ${playIconSvg}
<i class="fa fa-caret-down" aria-hidden="true"></i> <i class="fa fa-caret-down" aria-hidden="true"></i>
<i v-if="isLoading" class="fa fa-spinner fa-spin" aria-hidden="true"></i> <i v-if="isLoading" class="fa fa-spinner fa-spin" aria-hidden="true"></i>
...@@ -59,8 +59,10 @@ export default { ...@@ -59,8 +59,10 @@ export default {
<li v-for="action in actions"> <li v-for="action in actions">
<button <button
type="button" type="button"
class="js-pipeline-action-link no-btn" class="js-pipeline-action-link no-btn btn"
@click="onClickAction(action.path)"> :class="{ 'disabled': !actions.playable }"
@click="onClickAction(action.path)"
:disabled="!actions.playable">
${playIconSvg} ${playIconSvg}
<span>{{action.name}}</span> <span>{{action.name}}</span>
</button> </button>
......
---
title: Disable pipeline
merge_request: 10052
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment