Remote "target" button in readonly mode

This commit is contained in:
Mattias Granlund 2024-01-22 10:48:57 +01:00 committed by GitButler
commit e6d9691396

View File

@ -103,24 +103,24 @@
</div> </div>
{/if} {/if}
</div> </div>
<div class="header__actions"> {#if !readonly}
<div class="header__buttons"> <div class="header__actions">
{#if branch.selectedForChanges} <div class="header__buttons">
<Button icon="target" notClickable>Target branch</Button> {#if branch.selectedForChanges}
{:else} <Button icon="target" notClickable>Target branch</Button>
<Button {:else}
icon="target" <Button
kind="outlined" icon="target"
color="neutral" kind="outlined"
on:click={async () => { color="neutral"
await branchController.setSelectedForChanges(branch.id); on:click={async () => {
}} await branchController.setSelectedForChanges(branch.id);
> }}
Make target >
</Button> Make target
{/if} </Button>
</div> {/if}
{#if !readonly} </div>
<div class="relative" bind:this={meatballButton}> <div class="relative" bind:this={meatballButton}>
<Button <Button
icon="kebab" icon="kebab"
@ -138,8 +138,8 @@
<BranchLanePopupMenu {branchController} {branch} {projectId} bind:visible on:action /> <BranchLanePopupMenu {branchController} {branch} {projectId} bind:visible on:action />
</div> </div>
</div> </div>
{/if} </div>
</div> {/if}
</div> </div>
<div class="header__top-overlay" data-remove-from-draggable /> <div class="header__top-overlay" data-remove-from-draggable />
</div> </div>