simpler instance switching UI
This commit is contained in:
parent
0e229bedff
commit
9e973cabd0
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue