diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-11-03 03:37:33 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-11-10 17:53:34 +0300 |
commit | 99b421da2c5b2d889cd1e2ec6a5c60899bfe3593 (patch) | |
tree | c8dc51c280ee82e5925ffd2bdf621d450dd00ab6 /app/assets/javascripts/diff_notes | |
parent | a51285ade1d06f2383796cc2d9f36c33b46f79a4 (diff) | |
download | gitlab-ce-99b421da2c5b2d889cd1e2ec6a5c60899bfe3593.tar.gz |
Migrate Vue v1 to v2.
Diffstat (limited to 'app/assets/javascripts/diff_notes')
-rw-r--r-- | app/assets/javascripts/diff_notes/components/comment_resolve_btn.js.es6 | 2 | ||||
-rw-r--r-- | app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/diff_notes/components/comment_resolve_btn.js.es6 b/app/assets/javascripts/diff_notes/components/comment_resolve_btn.js.es6 index 29a12a2395b..bd5d8f24593 100644 --- a/app/assets/javascripts/diff_notes/components/comment_resolve_btn.js.es6 +++ b/app/assets/javascripts/diff_notes/components/comment_resolve_btn.js.es6 @@ -35,7 +35,7 @@ } } }, - ready: function () { + mounted: function () { const $textarea = $(`#new-discussion-note-form-${this.discussionId} .note-textarea`); this.textareaIsEmpty = $textarea.val() === ''; diff --git a/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 b/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 index bcc052c7c8c..3db0b4319b1 100644 --- a/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 +++ b/app/assets/javascripts/diff_notes/components/resolve_btn.js.es6 @@ -54,7 +54,7 @@ }, methods: { updateTooltip: function () { - $(this.$els.button) + $(this.$refs.button) .tooltip('hide') .tooltip('fixTitle'); }, @@ -89,8 +89,8 @@ }); } }, - compiled: function () { - $(this.$els.button).tooltip({ + mounted: function () { + $(this.$refs.button).tooltip({ container: 'body' }); }, |