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
e95ad491
Commit
e95ad491
authored
Apr 28, 2021
by
Coung Ngo
Committed by
Jose Ivan Vargas
May 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 5 suggestion(s) to 2 file(s)
parent
aa686d44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
app/assets/javascripts/issue_show/components/form.vue
app/assets/javascripts/issue_show/components/form.vue
+4
-4
spec/frontend/issue_show/components/form_spec.js
spec/frontend/issue_show/components/form_spec.js
+2
-7
No files found.
app/assets/javascripts/issue_show/components/form.vue
View file @
e95ad491
...
...
@@ -124,7 +124,7 @@ export default {
const
savedLockVersion
=
this
.
autosaveDescription
.
getSavedLockVersion
();
this
.
showOutdatedDescriptionWarning
=
savedLockVersion
&&
`
${
this
.
formState
.
lock_version
}
`
!==
savedLockVersion
;
savedLockVersion
&&
String
(
this
.
formState
.
lock_version
)
!==
savedLockVersion
;
this
.
autosaveTitle
=
new
Autosave
(
$
(
input
),
[
document
.
location
.
pathname
,
...
...
@@ -166,10 +166,10 @@ export default {
<locked-warning
v-if=
"showLockedWarning"
/>
<gl-alert
v-if=
"showOutdatedDescriptionWarning"
class=
"
mb-3
"
class=
"
gl-mb-5
"
variant=
"warning"
primary-button-text=
"
Keep
"
secondary-button-text=
"
Discard
"
primary-button-text=
"
__('Keep')
"
secondary-button-text=
"
__('Discard')
"
:dismissible=
"false"
@
primaryAction=
"keepAutosave"
@
secondaryAction=
"discardAutosave"
...
...
spec/frontend/issue_show/components/form_spec.js
View file @
e95ad491
...
...
@@ -27,16 +27,11 @@ describe('Inline edit form component', () => {
};
afterEach
(()
=>
{
if
(
wrapper
)
{
wrapper
.
destroy
();
wrapper
=
null
;
}
wrapper
.
destroy
();
});
const
createComponent
=
(
props
)
=>
{
const
Component
=
Vue
.
extend
(
formComponent
);
wrapper
=
shallowMount
(
Component
,
{
wrapper
=
shallowMount
(
formComponent
,
{
propsData
:
{
...
defaultProps
,
...
props
,
...
...
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