mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-05 17:15:19 +03:00
Remote "target" button in readonly mode
This commit is contained in:
commit
e6d9691396
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user