aboutsummaryrefslogtreecommitdiff
path: root/src/components/flash/flash.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-02-20 15:11:33 +0000
commitddee8bb686fb18baf5212089653a8b4e40feedd6 (patch)
treee200f269c3f8faca1f502cf416f0841126b52d9b /src/components/flash/flash.js
parent56616787ec1b8373e5c160c6fe863694a66ca2db (diff)
parentbefd4d5fc787d3f8287456dbf5d1a6c70419591f (diff)
Merge branch 'proper-attachments' into 'develop'
Attachment improvements See merge request pleroma/pleroma-fe!1399
Diffstat (limited to 'src/components/flash/flash.js')
-rw-r--r--src/components/flash/flash.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/flash/flash.js b/src/components/flash/flash.js
index d03384c7..87f940a7 100644
--- a/src/components/flash/flash.js
+++ b/src/components/flash/flash.js
@@ -39,12 +39,13 @@ const Flash = {
this.player = 'error'
})
this.ruffleInstance = player
+ this.$emit('playerOpened')
})
},
closePlayer () {
- console.log(this.ruffleInstance)
- this.ruffleInstance.remove()
+ this.ruffleInstance && this.ruffleInstance.remove()
this.player = false
+ this.$emit('playerClosed')
}
}
}