Commit 3c4ff902 authored by Phil Hughes's avatar Phil Hughes

Obly hides the help box if the close button is clicked or if issues are added

parent 6df65983
......@@ -111,7 +111,7 @@ $(() => {
class="btn btn-create pull-right prepend-left-10 has-tooltip"
type="button"
:disabled="disabled"
@click="toggleModal(true)">
@click="toggleModal(true, false)">
Add issues
</button>
`,
......
......@@ -24,7 +24,10 @@ module.exports = Vue.extend({
class="close"
aria-label="Close backlog help"
@click="toggleModal(false)">
<i class="fa fa-times"></i>
<i
class="fa fa-times"
aria-hidden="true">
</i>
</button>
</h4>
<div class="backlog-help-icon">${checkmarkIcon}</div>
......@@ -39,7 +42,7 @@ module.exports = Vue.extend({
class="btn btn-success"
type="button"
:disabled="disabled"
@click="toggleModal(true)">
@click="toggleModal(true, false)">
Add issues
</button>
</div>
......
......@@ -74,7 +74,7 @@ require('./lists_dropdown');
<button
class="btn btn-default pull-right"
type="button"
@click="toggleModal(false)">
@click="toggleModal(false, false)">
Cancel
</button>
</footer>
......
......@@ -57,7 +57,7 @@ const modalFilters = require('./filters');
class="close"
data-dismiss="modal"
aria-label="Close"
@click="toggleModal(false)">
@click="toggleModal(false, false)">
<span aria-hidden="true">×</span>
</button>
</h2>
......
......@@ -5,10 +5,12 @@
gl.issueBoards.ModalMixins = {
methods: {
toggleModal(toggleModal) {
Cookies.set('boards_backlog_help_hidden', true);
toggleModal(toggleModal, setCookie = true) {
if (setCookie) {
Cookies.set('boards_backlog_help_hidden', true);
Store.state.helpHidden = true;
}
Store.state.helpHidden = true;
ModalStore.store.showAddIssuesModal = toggleModal;
},
changeTab(tab) {
......
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