Improve usability of quote note by pasting url (#5196)
This commit is contained in:
parent
f1ab918ecd
commit
56c8ad9df3
3 changed files with 32 additions and 18 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue