forked from cybrespace/pinafore
		
	simpler instance switching UI
This commit is contained in:
		
							parent
							
								
									0e229bedff
								
							
						
					
					
						commit
						9e973cabd0
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue