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
698e4bb7
Commit
698e4bb7
authored
Mar 10, 2020
by
Donald Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unneeded param and better tests
parent
3b7ea6b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
app/assets/javascripts/vue_shared/components/notes/system_note.vue
...s/javascripts/vue_shared/components/notes/system_note.vue
+1
-5
spec/frontend/notes/stores/mutation_spec.js
spec/frontend/notes/stores/mutation_spec.js
+2
-2
No files found.
app/assets/javascripts/vue_shared/components/notes/system_note.vue
View file @
698e4bb7
...
...
@@ -107,11 +107,7 @@ export default {
<span
v-html=
"actionTextHtml"
></span>
<template
v-if=
"canSeeDescriptionVersion"
slot=
"extra-controls"
>
·
<button
type=
"button"
class=
"btn-blank btn-link"
@
click=
"toggleDescriptionVersion(note.description_version_id)"
>
<button
type=
"button"
class=
"btn-blank btn-link"
@
click=
"toggleDescriptionVersion"
>
{{
__
(
'
Compare with previous version
'
)
}}
<icon
:name=
"descriptionVersionToggleIcon"
:size=
"12"
class=
"append-left-5"
/>
</button>
...
...
spec/frontend/notes/stores/mutation_spec.js
View file @
698e4bb7
...
...
@@ -588,7 +588,7 @@ describe('Notes Store mutations', () => {
it
(
'
adds a descriptionVersion
'
,
()
=>
{
mutations
.
RECEIVE_DESCRIPTION_VERSION
(
state
,
{
descriptionVersion
,
versionId
});
expect
(
state
.
descriptionVersions
[
versionId
]).
to
Contain
(
descriptionVersion
);
expect
(
state
.
descriptionVersions
[
versionId
]).
to
Be
(
descriptionVersion
);
});
});
...
...
@@ -600,7 +600,7 @@ describe('Notes Store mutations', () => {
it
(
'
updates descriptionVersion to "Deleted"
'
,
()
=>
{
mutations
.
RECEIVE_DELETE_DESCRIPTION_VERSION
(
state
,
{
[
versionId
]:
deleted
});
expect
(
state
.
descriptionVersions
[
versionId
]).
to
Contain
(
deleted
);
expect
(
state
.
descriptionVersions
[
versionId
]).
to
Be
(
deleted
);
});
});
});
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