Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
06df0128
Commit
06df0128
authored
Jun 21, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves remove_issue component into a .vue file
parent
069c95e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
app/assets/javascripts/boards/components/board_sidebar.js
app/assets/javascripts/boards/components/board_sidebar.js
+2
-2
app/assets/javascripts/boards/components/sidebar/remove_issue.vue
...ts/javascripts/boards/components/sidebar/remove_issue.vue
+17
-17
No files found.
app/assets/javascripts/boards/components/board_sidebar.js
View file @
06df0128
...
...
@@ -9,7 +9,7 @@ import eventHub from '../../sidebar/event_hub';
import
assigneeTitle
from
'
../../sidebar/components/assignees/assignee_title.vue
'
;
import
assignees
from
'
../../sidebar/components/assignees/assignees.vue
'
;
import
DueDateSelectors
from
'
../../due_date_select
'
;
import
'
./sidebar/remove_iss
ue
'
;
import
removeBtn
from
'
./sidebar/remove_issue.v
ue
'
;
import
IssuableContext
from
'
../../issuable_context
'
;
import
LabelsSelect
from
'
../../labels_select
'
;
import
subscriptions
from
'
../../sidebar/components/subscriptions/subscriptions.vue
'
;
...
...
@@ -24,7 +24,7 @@ gl.issueBoards.BoardSidebar = Vue.extend({
components
:
{
assigneeTitle
,
assignees
,
removeBtn
:
gl
.
issueBoards
.
RemoveIssueBtn
,
removeBtn
,
subscriptions
,
},
props
:
{
...
...
app/assets/javascripts/boards/components/sidebar/remove_issue.
js
→
app/assets/javascripts/boards/components/sidebar/remove_issue.
vue
View file @
06df0128
import
Vue
from
'
vue
'
;
<
script
>
import
Flash
from
'
../../../flash
'
;
import
{
__
}
from
'
../../../locale
'
;
const
Store
=
gl
.
issueBoards
.
BoardsStore
;
window
.
gl
=
window
.
gl
||
{};
window
.
gl
.
issueBoards
=
window
.
gl
.
issueBoards
||
{};
gl
.
issueBoards
.
RemoveIssueBtn
=
Vue
.
extend
({
export
default
{
props
:
{
issue
:
{
type
:
Object
,
...
...
@@ -59,15 +56,18 @@ gl.issueBoards.RemoveIssueBtn = Vue.extend({
Store
.
detail
.
issue
=
{};
},
},
template
:
`
<div
class="block list">
<button
class="btn btn-default btn-block"
type="button"
@click="removeIssue">
Remove from board
</button>
</div>
`
,
});
};
</
script
>
<
template
>
<div
class=
"block list"
>
<button
class=
"btn btn-default btn-block"
type=
"button"
@
click=
"removeIssue"
>
Remove from board
</button>
</div>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment