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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
e95be13d
Commit
e95be13d
authored
Jul 16, 2018
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add disposeAutoSave method autosave mixin.
parent
01aa7752
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/notes/components/noteable_discussion.vue
...sets/javascripts/notes/components/noteable_discussion.vue
+1
-1
app/assets/javascripts/notes/mixins/autosave.js
app/assets/javascripts/notes/mixins/autosave.js
+3
-0
No files found.
app/assets/javascripts/notes/components/noteable_discussion.vue
View file @
e95be13d
...
...
@@ -152,7 +152,7 @@ export default {
this
.
initAutoSave
(
this
.
transformedDiscussion
,
[
'
Reply
'
]);
});
}
else
{
this
.
autosave
.
dispos
e
();
this
.
disposeAutoSav
e
();
}
},
},
...
...
app/assets/javascripts/notes/mixins/autosave.js
View file @
e95be13d
...
...
@@ -23,5 +23,8 @@ export default {
setAutoSave
()
{
this
.
autosave
.
save
();
},
disposeAutoSave
()
{
this
.
autosave
.
dispose
();
},
},
};
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