Merge pull request #180 from h3poteto/iss-171
closes #171 Show error message when failed to start streaming
This commit is contained in:
commit
4f73b1ef2a
|
@ -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