Skip to content

Commit

Permalink
Merge pull request #180 from h3poteto/iss-171
Browse files Browse the repository at this point in the history
closes #171 Show error message when failed to start streaming
  • Loading branch information
h3poteto authored Apr 2, 2018
2 parents e9f40f3 + af85e5c commit 4f73b1e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderer/components/TimelineSpace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/components/TimelineSpace/Contents/Local.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/components/TimelineSpace/Contents/Public.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f73b1e

Please sign in to comment.