Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
admin-fe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angelina Filippova
admin-fe
Commits
7ab2e66c
Commit
7ab2e66c
authored
Apr 01, 2019
by
Angelina Filippova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ability to close and open new note section
parent
2bed9bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
src/views/reports/components/TimelineItem.vue
src/views/reports/components/TimelineItem.vue
+16
-3
No files found.
src/views/reports/components/TimelineItem.vue
View file @
7ab2e66c
...
...
@@ -16,8 +16,11 @@
</el-card>
</div>
</el-collapse-item>
<div
class=
"new-note"
>
<p>
New note
</p>
<div
v-show=
"showNewNoteInput"
class=
"new-note"
>
<div
class=
"header-container"
>
<p>
New note
</p>
<i
class=
"el-icon-close"
@
click=
"toggleNoteInput"
/>
</div>
<el-input
v-model=
"note"
:rows=
"2"
type=
"textarea"
autofocus
/>
</div>
</el-collapse>
...
...
@@ -37,11 +40,13 @@ export default {
data
()
{
return
{
showNotes
:
[],
showNewNoteInput
:
false
,
note
:
''
}
},
methods
:
{
toggleNoteInput
()
{
this
.
$data
.
showNewNoteInput
=
!
this
.
$data
.
showNewNoteInput
}
}
}
...
...
@@ -57,6 +62,13 @@ export default {
.el-collapse-item__content
{
padding-bottom
:
7px
;
}
.el-icon-arrow-right
{
margin-right
:
6px
;
}
.el-icon-close
{
padding
:
10px
5px
10px
10px
;
cursor
:
pointer
;
}
h4
{
margin
:
0
;
height
:
17px
;
...
...
@@ -67,10 +79,11 @@ export default {
align-items
:
baseline
;
}
.new-note
{
margin
:
14px
0
17px
;
margin
-bottom
:
17px
;
p
{
font-size
:
13px
;
font-weight
:
500
;
height
:
17px
;
margin
:
13px
0
7px
;
}
}
...
...
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