fix(core): update
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import * as plugins from '../wcctools.plugins';
|
||||
import { LitElement, property, html, customElement, TemplateResult } from 'lit-element';
|
||||
import { WccDashboard } from './wcc-dashboard';
|
||||
|
||||
@@ -104,9 +105,10 @@ export class WccSidebar extends LitElement {
|
||||
return html`
|
||||
<div
|
||||
class="selectOption ${this.selectedItem === item ? 'selected' : console.log('hi')}"
|
||||
@click=${() => {
|
||||
@click=${async () => {
|
||||
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||
this.selectItem(item);
|
||||
this.dashboardRef.domtools.router.pushUrl(`/pages/${pageName}`);
|
||||
domtools.router.pushUrl(`/pages/${pageName}`);
|
||||
}}
|
||||
>
|
||||
<i class="material-icons">insert_drive_file</i>
|
||||
@@ -123,9 +125,10 @@ export class WccSidebar extends LitElement {
|
||||
return html`
|
||||
<div
|
||||
class="selectOption ${this.selectedItem === item ? 'selected' : console.log('hi')}"
|
||||
@click=${() => {
|
||||
@click=${async () => {
|
||||
const domtools = await plugins.deesDomtools.DomTools.setupDomTools();
|
||||
this.selectItem(item);
|
||||
this.dashboardRef.domtools.router.pushUrl(`/elements/${elementName}`);
|
||||
domtools.router.pushUrl(`/elements/${elementName}`);
|
||||
}}
|
||||
>
|
||||
<i class="material-icons">featured_video</i>
|
||||
|
Reference in New Issue
Block a user