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

Merge branch 'lowercase' into main

parents 7046be8c 94ff810a
Branches
No related tags found
No related merge requests found
...@@ -196,13 +196,18 @@ export default { ...@@ -196,13 +196,18 @@ export default {
methods: { methods: {
createMicrocosm() { createMicrocosm() {
this.$store.dispatch('createMicrocosm', this.localmicrocosm) var str = this.localmicrocosm
localStorage.setItem('mylastMicrocosm', this.localmicrocosm) var result = str.toLowerCase()
this.$store.dispatch('createMicrocosm', result)
localStorage.setItem('mylastMicrocosm', result)
this.microcosm = true this.microcosm = true
}, },
setClient() { setClient() {
this.$store.dispatch('setClient', this.clientid), var str = this.clientid
localStorage.setItem('myNNClient', this.clientid) var result = str.toLowerCase()
this.$store.dispatch('setClient', result),
localStorage.setItem('myNNClient', result)
this.name = true this.name = true
this.focusInput() this.focusInput()
}, },
...@@ -213,11 +218,13 @@ export default { ...@@ -213,11 +218,13 @@ export default {
}, },
editTrue(e) { editTrue(e) {
this.$emit('editTrue', e) // needs to be KebabCase now
// this.$emit('my-event')
this.$emit('edit-true', e)
}, },
letsGo() { letsGo() {
this.$emit('clientAdded') this.$emit('client-added')
}, },
focusInput() { focusInput() {
...@@ -225,7 +232,7 @@ export default { ...@@ -225,7 +232,7 @@ export default {
}, },
}, },
computed: mapState({ computed: mapState({
scale: (state) => state.ui.scale scale: (state) => state.ui.scale,
}), }),
components: { components: {
draggable, draggable,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</div> </div>
<div v-else> <div v-else>
<OnBoard @clientAdded="clientAdded()" @editTrue="(e) => editTrue(e)" /> <OnBoard @client-added="clientAdded()" @edit-true="(e) => editTrue(e)" />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
<div v-else> <div v-else>
<OnBoard @clientAdded="clientAdded()" @editTrue="(e) => editTrue(e)" /> <OnBoard @client-added="clientAdded()" @edit-true="(e) => editTrue(e)" />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
v-bind:nodetext="value.node_text" v-bind:nodetext="value.node_text"
v-bind:deleted="value.deleted" v-bind:deleted="value.deleted"
/> />
<OnBoard @clientAdded="clientAdded()" @editTrue="(e) => editTrue(e)" /> <OnBoard @client-added="clientAdded()" @edit-true="(e) => editTrue(e)" />
</div> </div>
</div> </div>
</template> </template>
......
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
v-bind:deleted="value.deleted" v-bind:deleted="value.deleted"
/> />
<OnBoard <OnBoard
@clientAdded="clientAdded()" @client-added="clientAdded()"
@editTrue="(e) => editTrue(e)" @edit-true="(e) => editTrue(e)"
/> />
<ConnectionsLayer /> <ConnectionsLayer />
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment