Commit eb2180d6 authored by Kyle Wiebers's avatar Kyle Wiebers Committed by Kushal Pandya

Add qa-selector to issue header

parent e7650bc4
......@@ -87,6 +87,9 @@ export default {
? sprintf(__('Reopen %{issueType}'), { issueType: this.issueType })
: sprintf(__('Close %{issueType}'), { issueType: this.issueType });
},
qaSelector() {
return this.isClosed ? 'reopen_issue_button' : 'close_issue_button';
},
buttonVariant() {
return this.isClosed ? 'default' : 'warning';
},
......@@ -216,6 +219,7 @@ export default {
v-if="showToggleIssueStateButton"
class="gl-display-none gl-display-sm-inline-flex!"
category="secondary"
:data-qa-selector="qaSelector"
:loading="isUpdatingState"
:variant="buttonVariant"
@click="toggleIssueState"
......
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