Skip to content

Commit

Permalink
Fix alignment of add room button in rooms GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
MikMuellerDev committed May 22, 2022
1 parent 143ff21 commit 84edf93
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions web/src/pages/rooms/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -327,21 +327,22 @@
<div id="no-rooms">
<i class="material-icons">no_meeting_room</i>
<h6>There are currently no rooms.</h6>
{#if hasEditPermission}
<div>
<Button variant="outlined" on:click={addRoomShow}>
<Label>Create Room</Label>
</Button>
</div>
{/if}
</div>
{#if hasEditPermission}
<div>
<Button variant="outlined" on:click={addRoomShow}>
<Label>Create Room</Label>
</Button>
</div>
{/if}
{:else}
{#each currentRoom !== undefined ? currentRoom.switches : [] as sw (sw.id)}
<PowerSwitch
bind:checked={sw.powerOn}
on:delete={() => deleteSwitch(sw.id)}
on:modify={modifySwitch}
on:powerChange={() => (reloadCameras = $powerCamReloadEnabled)}
on:powerChange={() =>
(reloadCameras = $powerCamReloadEnabled)}
on:powerChangeDone={() => (reloadCameras = false)}
id={sw.id}
name={sw.name}
Expand Down

0 comments on commit 84edf93

Please sign in to comment.