refs #171 Show error message when failed to start streaming

This commit is contained in:
AkiraFukushima 2018-04-03 08:34:27 +09:00
parent e9f40f3ab6
commit af85e5c243
3 changed files with 18 additions and 0 deletions

View File

@ -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',

View File

@ -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)

View File

@ -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)