refs #171 Show error message when failed to start streaming
This commit is contained in:
parent
e9f40f3ab6
commit
af85e5c243
|
@ -69,6 +69,12 @@ export default {
|
|||
})
|
||||
}
|
||||
this.$store.dispatch('TimelineSpace/startUserStreaming', account)
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
message: 'Failed to start streaming',
|
||||
type: 'error'
|
||||
})
|
||||
})
|
||||
} catch (err) {
|
||||
this.$message({
|
||||
message: 'Could not find account',
|
||||
|
|
|
@ -56,6 +56,12 @@ export default {
|
|||
})
|
||||
}
|
||||
this.$store.dispatch('TimelineSpace/Contents/Local/startLocalStreaming')
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
message: 'Failed to start streaming',
|
||||
type: 'error'
|
||||
})
|
||||
})
|
||||
},
|
||||
updateToot (message) {
|
||||
this.$store.commit('TimelineSpace/Contents/Local/updateToot', message)
|
||||
|
|
|
@ -56,6 +56,12 @@ export default {
|
|||
})
|
||||
}
|
||||
this.$store.dispatch('TimelineSpace/Contents/Public/startPublicStreaming')
|
||||
.catch(() => {
|
||||
this.$message({
|
||||
message: 'Failed to start streaming',
|
||||
type: 'error'
|
||||
})
|
||||
})
|
||||
},
|
||||
updateToot (message) {
|
||||
this.$store.commit('TimelineSpace/Contents/Public/updateToot', message)
|
||||
|
|
Loading…
Reference in New Issue