simpler instance switching UI

This commit is contained in:
Nolan Lawson 2018-01-21 18:48:21 -08:00
parent 0e229bedff
commit 9e973cabd0

View file

@ -28,10 +28,10 @@
</form> </form>
<form class="instance-actions" aria-label="Switch to or log out of this instance"> <form class="instance-actions" aria-label="Switch to or log out of this instance">
{{#if $loggedInInstancesInOrder.length > 1}} {{#if $loggedInInstancesInOrder.length > 1 && $currentInstance !== params.instanceName}}
<button class="primary" disabled="{{$currentInstance === params.instanceName}}" <button class="primary"
on:click="onSwitchToThisInstance(event)"> on:click="onSwitchToThisInstance(event)">
{{$currentInstance === params.instanceName ? 'This is your current instance' : 'Switch to this instance'}} Switch to this instance
</button> </button>
{{/if}} {{/if}}
<button on:click="onLogOut(event)">Log out</button> <button on:click="onLogOut(event)">Log out</button>