Merge pull request #180 from h3poteto/iss-171

closes #171 Show error message when failed to start streaming
This commit is contained in:
AkiraFukushima 2018-04-03 08:34:47 +09:00 committed by GitHub
commit 4f73b1ef2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)