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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e9ea5785
Commit
e9ea5785
authored
Nov 21, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add updateUrl to issuable textarea
parent
76904a28
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
app/assets/javascripts/issue_show/components/app.vue
app/assets/javascripts/issue_show/components/app.vue
+4
-0
app/assets/javascripts/issue_show/components/description.vue
app/assets/javascripts/issue_show/components/description.vue
+8
-1
No files found.
app/assets/javascripts/issue_show/components/app.vue
View file @
e9ea5785
...
@@ -128,6 +128,9 @@ export default {
...
@@ -128,6 +128,9 @@ export default {
hasUpdated
()
{
hasUpdated
()
{
return
!!
this
.
state
.
updatedAt
;
return
!!
this
.
state
.
updatedAt
;
},
},
updateUrl
()
{
return
`
${
this
.
endpoint
}
.json`
;
},
},
},
components
:
{
components
:
{
descriptionComponent
,
descriptionComponent
,
...
@@ -251,6 +254,7 @@ export default {
...
@@ -251,6 +254,7 @@ export default {
:updated-at=
"state.updatedAt"
:updated-at=
"state.updatedAt"
:task-status=
"state.taskStatus"
:task-status=
"state.taskStatus"
:issuable-type=
"issuableType"
:issuable-type=
"issuableType"
:update-url=
"updateUrl"
/>
/>
<edited-component
<edited-component
v-if=
"hasUpdated"
v-if=
"hasUpdated"
...
...
app/assets/javascripts/issue_show/components/description.vue
View file @
e9ea5785
...
@@ -27,6 +27,11 @@
...
@@ -27,6 +27,11 @@
required
:
false
,
required
:
false
,
default
:
'
issue
'
,
default
:
'
issue
'
,
},
},
updateUrl
:
{
type
:
String
,
required
:
false
,
default
:
null
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -100,7 +105,9 @@
...
@@ -100,7 +105,9 @@
<textarea
<textarea
class=
"hidden js-task-list-field"
class=
"hidden js-task-list-field"
v-if=
"descriptionText"
v-if=
"descriptionText"
v-model=
"descriptionText"
>
v-model=
"descriptionText"
:data-update-url=
"updateUrl"
>
</textarea>
</textarea>
</div>
</div>
</
template
>
</
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