diff options
| author | Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> | 2019-07-20 03:23:16 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-20 03:23:16 +0900 |
| commit | 56c8ad9df37d6c1a697fb6cdbe7ccf56752b14c6 (patch) | |
| tree | e01dcfb0afca3bedc860fccc10457ab39376769b /src/client/app/common/scripts/post-form.ts | |
| parent | Fix question (#5197) (diff) | |
| download | sharkey-56c8ad9df37d6c1a697fb6cdbe7ccf56752b14c6.tar.gz sharkey-56c8ad9df37d6c1a697fb6cdbe7ccf56752b14c6.tar.bz2 sharkey-56c8ad9df37d6c1a697fb6cdbe7ccf56752b14c6.zip | |
Improve usability of quote note by pasting url (#5196)
Diffstat (limited to 'src/client/app/common/scripts/post-form.ts')
| -rw-r--r-- | src/client/app/common/scripts/post-form.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/post-form.ts b/src/client/app/common/scripts/post-form.ts index 7cf26f65bf..ff3fd0792b 100644 --- a/src/client/app/common/scripts/post-form.ts +++ b/src/client/app/common/scripts/post-form.ts @@ -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({ |