Skip to content
Snippets Groups Projects
Commit 7d766aa4 authored by Adam Procter's avatar Adam Procter
Browse files

basic list view

The loops need reviewing I think there is a  better way but will do for now
parent 4665a054
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<div class="controls">
<div class="btn-row">
<BaseButton buttonClass="action" @click="addNode()">Create Node</BaseButton>
<BaseButton buttonClass="action" @click="listView()">List View</BaseButton>
<BaseButton buttonClass="action" @click="listView()">Switch View</BaseButton>
<BaseButton buttonClass="action" @click="removeLocal()">Join another microcosm</BaseButton>
<!-- <BaseButton @click="exportStorage()">Export my contributions</BaseButton>
<BaseButton buttonClass="danger" v-on:click="deleteClient">
......
<template>
<div class="home">
<div v-if="clientset">
<OtherNodeslayer
v-for="value in otherNodes"
v-bind:key="value.node_id"
v-bind:nodeid="value.node_id"
v-bind:nodetext="value.node_text"
/>
<NodesLayer
@editTrue="e => editTrue(e)"
v-for="value in myNodes"
v-bind:key="value.node_id"
v-bind:nodeid="value.node_id"
v-bind:nodetext="value.node_text"
/>
<div v-if="listview">
<ListLayer
v-for="value in myNodes"
......@@ -30,6 +16,22 @@
v-bind:nodetext="value.node_text"
/>
</div>
<div v-else>
<OtherNodeslayer
v-for="value in otherNodes"
v-bind:key="value.node_id"
v-bind:nodeid="value.node_id"
v-bind:nodetext="value.node_text"
/>
<NodesLayer
@editTrue="e => editTrue(e)"
v-for="value in myNodes"
v-bind:key="value.node_id"
v-bind:nodeid="value.node_id"
v-bind:nodetext="value.node_text"
/>
</div>
<ControlsLayer @listView="listView()" />
</div>
<OnBoard v-else @clientAdded="clientAdded()" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment