mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-20 08:01:46 +03:00
NotOnGitButlerBranch refactor
- fixed screen flickering - page layout updated
This commit is contained in:
parent
7227d7acf6
commit
9a5fe102a7
@ -6,7 +6,6 @@
|
||||
import RemoveProjectButton from './RemoveProjectButton.svelte';
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
import * as toasts from '$lib/utils/toasts';
|
||||
import { slide } from 'svelte/transition';
|
||||
import type { Project, ProjectService } from '$lib/backend/projects';
|
||||
import type { UserService } from '$lib/stores/user';
|
||||
import type { BranchController } from '$lib/vbranches/branchController';
|
||||
@ -21,8 +20,6 @@
|
||||
|
||||
$: user$ = userService.user$;
|
||||
|
||||
let showDropDown = false;
|
||||
|
||||
let isDeleting = false;
|
||||
let deleteConfirmationModal: RemoveProjectButton;
|
||||
|
||||
@ -76,18 +73,7 @@
|
||||
>
|
||||
Go back to gitbutler/integration
|
||||
</Button>
|
||||
{#if !showDropDown}
|
||||
<Button
|
||||
color="primary"
|
||||
kind="outlined"
|
||||
on:click={() => {
|
||||
showDropDown = true;
|
||||
// if (baseBranch) branchController.setTarget(baseBranch.branchName);
|
||||
}}
|
||||
>
|
||||
Switch to another project...
|
||||
</Button>
|
||||
{/if}
|
||||
|
||||
{#if project}
|
||||
<RemoveProjectButton
|
||||
bind:this={deleteConfirmationModal}
|
||||
@ -98,11 +84,9 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if showDropDown}
|
||||
<div class="switchrepo__project" transition:slide={{ duration: 250 }}>
|
||||
<ProjectSwitcher {projectService} {project} />
|
||||
</div>
|
||||
{/if}
|
||||
<div class="switchrepo__project">
|
||||
<ProjectSwitcher {projectService} {project} />
|
||||
</div>
|
||||
</div>
|
||||
</DecorativeSplitView>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user