Added a disconnect button to reset vuex state

This commit is contained in:
jtc42 2019-06-07 16:44:36 +01:00
parent 293409b39c
commit c2cfcb8e56

View file

@ -55,9 +55,15 @@
</ul>
<button class="uk-button uk-button-primary uk-form-small uk-float-right uk-margin uk-margin-remove-top uk-width-1-1">Connect</button>
</form>
<button
v-if="$store.getters.ready"
v-on:click="$store.commit('resetState')"
class="uk-button uk-button-danger uk-form-small uk-float-right uk-margin uk-margin-remove-top uk-width-1-1">
Disconnect
</button>
</div>
</div>