fixed some JS issues where event overview links did not work and all devices does is not visible

This commit is contained in:
Ziver Koc 2024-03-22 01:27:43 +01:00
parent 98c48e595f
commit 1d8b26998a
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,9 @@ export default {
<input type="hidden" name="action-id" :value="event.id">
<div class="btn-toolbar pull-right">
<template v-if="event.dataType === 'ColorEventData'">
<template v-if="event.dataType === null">
</template>
<template v-else-if="event.dataType === 'ColorEventData'">
<input type="hidden" name="type" value="color">
<input type="color" name="data" onchange="this.form.submit()" :value="event.data?.valueStr">
</template>

View file

@ -7,7 +7,7 @@ public class JavascriptModules implements HalJavascriptModule {
@Override
public HalJsModule[] getJavascriptModules() {
HalWebPage.getRootNav().createSubNav("Events").createSubNav("/event_overview", "Overview");
HalWebPage.getRootNav().createSubNav("Events").createSubNav("event_overview", "Overview");
return new HalJsModule[] {
new HalJsModule("AlertStore", "./js/vue/stores/AlertStore.js"),