refactored options_init to options on frontend

This commit is contained in:
zadam
2019-08-25 17:36:13 +02:00
parent f9abea83f3
commit 9622b046e0
14 changed files with 27 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import optionsInit from "../services/options_init.js";
import optionsService from "../services/options.js";
const WIDGET_TPL = `
<div class="card widget">
@@ -84,7 +84,7 @@ class StandardWidget {
async doRenderBody() {}
async isEnabled() {
const option = await optionsInit.getJsonOption(this.widgetName + 'Widget');
const option = await optionsService.getJsonOption(this.widgetName + 'Widget');
return option ? option.enabled : true;
}