BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c3a4fa41
Commit
c3a4fa41
authored
Jun 15, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Initial template for system notes.
parent
7433377a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
issue_notes.vue
app/assets/javascripts/notes/components/issue_notes.vue
+7
-1
issue_system_note.vue
...assets/javascripts/notes/components/issue_system_note.vue
+3
-0
No files found.
app/assets/javascripts/notes/components/issue_notes.vue
View file @
c3a4fa41
...
...
@@ -4,6 +4,7 @@ import Vuex from 'vuex';
import
storeOptions
from
'../stores/issue_notes_store'
;
import
IssueNote
from
'./issue_note.vue'
;
import
IssueDiscussion
from
'./issue_discussion.vue'
;
import
IssueSystemNote
from
'./issue_system_note.vue'
;
Vue
.
use
(
Vuex
);
const
store
=
new
Vuex
.
Store
(
storeOptions
);
...
...
@@ -19,10 +20,15 @@ export default {
components
:
{
IssueNote
,
IssueDiscussion
,
IssueSystemNote
,
},
methods
:
{
component
(
note
)
{
return
note
.
individual_note
?
IssueNote
:
IssueDiscussion
;
if
(
note
.
individual_note
)
{
return
note
.
notes
[
0
].
system
?
IssueSystemNote
:
IssueNote
;
}
return
IssueDiscussion
;
},
componentData
(
note
)
{
return
note
.
individual_note
?
note
.
notes
[
0
]
:
note
;
...
...
app/assets/javascripts/notes/components/issue_system_note.vue
0 → 100644
View file @
c3a4fa41
<
template
>
<p>
System note
</p>
</
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