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