Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Add notification is playing sound when switch is off
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzi committed Sep 17, 2018
1 parent cb9e9ee commit 2f99a9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@
this.saveChanges()
},
playSound (index, row) {
if (this.dialogVisible || !this.active) return
if (this.dialogVisible) return
if (!this.active) {
this.$message.error('The switch is off.')
return
}
// if the sound is playing stop it
if (this.tableData[index].audio !== null) {
Expand Down

0 comments on commit 2f99a9a

Please sign in to comment.