Commit 9e433536 authored by Phil Hughes's avatar Phil Hughes

Started adding filters to issues modal

parent 538a6875
/* global Vue */
(() => {
const ModalStore = gl.issueBoards.ModalStore;
gl.issueBoards.ModalFilters = Vue.extend({
template: `
<div class="modal-filters">
<div class="dropdown">
<button
class="dropdown-menu-toggle js-user-search js-author-search"
type="button"
data-toggle="dropdown">
Author
<i class="fa fa-chevron-down"></i>
</button>
</div>
<div class="dropdown">
<button
class="dropdown-menu-toggle js-user-search js-assignee-search"
type="button"
data-toggle="dropdown">
Assignee
<i class="fa fa-chevron-down"></i>
</button>
</div>
<div class="dropdown">
<button
class="dropdown-menu-toggle js-milestone-select"
type="button"
data-toggle="dropdown">
Milestone
<i class="fa fa-chevron-down"></i>
</button>
</div>
<div class="dropdown">
<button
class="dropdown-menu-toggle js-label-select js-multiselect"
type="button"
data-toggle="dropdown">
Label
<i class="fa fa-chevron-down"></i>
</button>
</div>
</div>
`,
});
})();
/* global Vue */ /* global Vue */
//= require ./tabs //= require ./tabs
//= require ./filters
(() => { (() => {
const ModalStore = gl.issueBoards.ModalStore; const ModalStore = gl.issueBoards.ModalStore;
...@@ -49,6 +50,7 @@ ...@@ -49,6 +50,7 @@
<div <div
class="add-issues-search append-bottom-10" class="add-issues-search append-bottom-10"
v-if="showSearch"> v-if="showSearch">
<modal-filters></modal-filters>
<input <input
placeholder="Search issues..." placeholder="Search issues..."
class="form-control" class="form-control"
......
...@@ -416,6 +416,11 @@ ...@@ -416,6 +416,11 @@
.add-issues-search { .add-issues-search {
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
.form-control {
max-width: 200px;
margin-left: auto;
}
} }
.add-issues-list-column { .add-issues-list-column {
...@@ -486,3 +491,15 @@ ...@@ -486,3 +491,15 @@
line-height: 15px; line-height: 15px;
border-radius: 50%; border-radius: 50%;
} }
.modal-filters {
display: flex;
> .dropdown {
margin-right: 10px;
}
.dropdown-menu-toggle {
width: 140px;
}
}
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