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

fixed device name sticky

accidentally removed device name sticking at some point ! fixed
parent 59acd83e
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,12 @@
</div>
</div>
<div v-else>
<h4>Saved</h4>
<h4>Saved as : {{ clientid }}</h4>
<div class="btn-row">
<BaseButton buttonClass="special" @click="clearClient()"
>Clear</BaseButton
>
</div>
</div>
</div>
</vue-draggable-resizable>
......@@ -107,7 +112,12 @@
</div>
</div>
<div v-else>
<h4>Saved</h4>
<h4>Saved as : {{ clientid }}</h4>
<div class="btn-row">
<BaseButton buttonClass="special" @click="clearClient()"
>Clear</BaseButton
>
</div>
</div>
</div>
......@@ -163,6 +173,11 @@ export default {
},
mounted() {
if (localStorage.myNNClient) {
this.clientid = localStorage.myNNClient
this.setClient()
}
if (localStorage.myNNClient && localStorage.mylastMicrocosm) {
this.clientid = localStorage.myNNClient
this.localmicrocosm = localStorage.mylastMicrocosm
......@@ -187,6 +202,11 @@ export default {
this.name = true
this.focusInput()
},
clearClient() {
this.clientid = ''
this.name = false
localStorage.removeItem('myNNClient')
},
editTrue(e) {
this.$emit('editTrue', e)
......
......@@ -68,7 +68,6 @@ export default {
},
removeLocal: function () {
//localStorage.removeItem('myNNClient')
localStorage.removeItem('mylastMicrocosm')
location.assign(
......
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