mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-03 15:06:01 +03:00
Remote "target" button in readonly mode
This commit is contained in:
commit
e6d9691396
@ -103,24 +103,24 @@
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="header__actions">
|
||||
<div class="header__buttons">
|
||||
{#if branch.selectedForChanges}
|
||||
<Button icon="target" notClickable>Target branch</Button>
|
||||
{:else}
|
||||
<Button
|
||||
icon="target"
|
||||
kind="outlined"
|
||||
color="neutral"
|
||||
on:click={async () => {
|
||||
await branchController.setSelectedForChanges(branch.id);
|
||||
}}
|
||||
>
|
||||
Make target
|
||||
</Button>
|
||||
{/if}
|
||||
</div>
|
||||
{#if !readonly}
|
||||
{#if !readonly}
|
||||
<div class="header__actions">
|
||||
<div class="header__buttons">
|
||||
{#if branch.selectedForChanges}
|
||||
<Button icon="target" notClickable>Target branch</Button>
|
||||
{:else}
|
||||
<Button
|
||||
icon="target"
|
||||
kind="outlined"
|
||||
color="neutral"
|
||||
on:click={async () => {
|
||||
await branchController.setSelectedForChanges(branch.id);
|
||||
}}
|
||||
>
|
||||
Make target
|
||||
</Button>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="relative" bind:this={meatballButton}>
|
||||
<Button
|
||||
icon="kebab"
|
||||
@ -138,8 +138,8 @@
|
||||
<BranchLanePopupMenu {branchController} {branch} {projectId} bind:visible on:action />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="header__top-overlay" data-remove-from-draggable />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user