Improve usability of quote note by pasting url (#5196)

This commit is contained in:
Satsuki Yanagi
2019-07-20 03:23:16 +09:00
committed by syuilo
parent f1ab918ecd
commit 56c8ad9df3
3 changed files with 32 additions and 18 deletions

View File

@ -328,6 +328,7 @@ export default (opts) => ({
this.text = '';
this.files = [];
this.poll = false;
this.quoteId = null;
this.$emit('change-attached-files', this.files);
},
@ -357,7 +358,7 @@ export default (opts) => ({
const paste = e.clipboardData.getData('text');
if (paste.startsWith(url + '/notes/')) {
if (!this.renote && !this.quoteId && paste.startsWith(url + '/notes/')) {
e.preventDefault();
this.$root.dialog({