summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorChristian Hofmaier2019-04-15 17:35:47 +0200
committerChristian Hofmaier2019-04-15 17:35:47 +0200
commit139b11e4cc13024e96e25eeeaab3a8dac8b60396 (patch)
tree8e283cb0ce4965def5c0e56b2891842e1eefb7e6 /webapp
parentserver crash hotfix (diff)
downloadbas-139b11e4cc13024e96e25eeeaab3a8dac8b60396.tar.gz
bas-139b11e4cc13024e96e25eeeaab3a8dac8b60396.tar.xz
bas-139b11e4cc13024e96e25eeeaab3a8dac8b60396.zip
[eventmanager] integrate WoL utility
- add column to db - add checkbox to frontend - implement scheduler
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/EventModuleEdit.vue14
1 files changed, 13 insertions, 1 deletions
diff --git a/webapp/src/components/EventModuleEdit.vue b/webapp/src/components/EventModuleEdit.vue
index 9075faa..025ecfb 100644
--- a/webapp/src/components/EventModuleEdit.vue
+++ b/webapp/src/components/EventModuleEdit.vue
@@ -47,6 +47,7 @@
"thursday": "Thursday",
"tuesday": "Tuesday",
"uuid": "UUID",
+ "wakeonlan": "Wake On Lan",
"wednesday": "Wednesday",
"week": "Week"
},
@@ -97,6 +98,7 @@
"thursday": "Donnerstag",
"tuesday": "Dienstag",
"uuid": "UUID",
+ "wakeonlan": "Wake On Lan",
"wednesday": "Mittwoch",
"week": "Woche"
}
@@ -173,13 +175,20 @@
auto-grow
></v-textarea>
</v-flex>
- <v-flex xs12 md5 offset-md1>
+ <v-flex xs12 md2 offset-md1>
<v-checkbox
v-model="important"
color="primary"
:label="$t('importantEvent')"
></v-checkbox>
</v-flex>
+ <v-flex xs12 md2 offset-md1>
+ <v-checkbox
+ v-model="wakeonlan"
+ color="primary"
+ :label="$t('wakeonlan')"
+ ></v-checkbox>
+ </v-flex>
</v-layout>
<v-layout row wrap>
<v-flex xs12 md5>
@@ -411,6 +420,7 @@ export default {
name: '',
description: '',
important: false,
+ wakeonlan: false,
config: [],
times: {},
groups: [],
@@ -457,6 +467,7 @@ export default {
this.name = value.info.name || ''
this.description = value.info.description || ''
this.important = value.info.important || false
+ this.wakeonlan = value.info.wakeonlan || false
this.config = value.info.config ? [value.info.config] : []
@@ -587,6 +598,7 @@ export default {
blacklistClients: this.blacklistClients.map(x => x.id),
config: this.config.map(x => x.id),
important: this.important,
+ wakeonlan: this.wakeonlan,
times: JSON.stringify(this.times)
})
this.$store.dispatch('events/loadEvents')