зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #6197 from nextcloud/bugfix/5776/fix-video-toggling-on-pasting
Fix video toggling on pasting
This commit is contained in:
Коммит
a74ca030a6
|
@ -646,6 +646,14 @@ export default {
|
|||
},
|
||||
|
||||
toggleVideo() {
|
||||
/**
|
||||
* Abort toggling the video if the 'v' key is lifted when pasting an
|
||||
* image in the new message form.
|
||||
*/
|
||||
if (document.getElementsByClassName('upload-editor').length !== 0) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!this.model.attributes.videoAvailable) {
|
||||
return
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче