mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-21 08:31:40 +03:00
Small improvement to commit dialog data binding
This commit is contained in:
parent
1475f06958
commit
717186a3e4
@ -52,10 +52,11 @@
|
||||
export let selectedFiles: Writable<LocalFile[]>;
|
||||
export let githubService: GitHubService;
|
||||
export let selectedOwnership: Writable<Ownership>;
|
||||
export let commitBoxOpen: Writable<boolean>;
|
||||
export let isLaneCollapsed: Persisted<boolean>;
|
||||
export let baseBranchService: BaseBranchService;
|
||||
|
||||
export const commitBoxOpen = persisted<boolean>(false, 'commitBoxExpanded_' + branch.id);
|
||||
|
||||
const aiGenEnabled = projectAiGenEnabled(project.id);
|
||||
const aiGenAutoBranchNamingEnabled = projectAiGenAutoBranchNamingEnabled(project.id);
|
||||
|
||||
@ -284,7 +285,7 @@
|
||||
{cloud}
|
||||
{selectedOwnership}
|
||||
{user}
|
||||
bind:expanded={commitBoxOpen}
|
||||
expanded={commitBoxOpen}
|
||||
on:action={(e) => {
|
||||
if (e.detail == 'generate-branch-name') {
|
||||
generateBranchName();
|
||||
|
@ -15,7 +15,6 @@
|
||||
projectRunCommitHooks,
|
||||
persistedCommitMessage
|
||||
} from '$lib/config/config';
|
||||
import { persisted } from '$lib/persisted/persisted';
|
||||
import * as toasts from '$lib/utils/toasts';
|
||||
import { tooltip } from '$lib/utils/tooltip';
|
||||
import { setAutoHeight } from '$lib/utils/useAutoHeight';
|
||||
@ -39,7 +38,7 @@
|
||||
export let cloud: ReturnType<typeof getCloudApiClient>;
|
||||
export let user: User | undefined;
|
||||
export let selectedOwnership: Writable<Ownership>;
|
||||
export const expanded = persisted<boolean>(false, 'commitBoxExpanded_' + branch.id);
|
||||
export let expanded: Writable<boolean>;
|
||||
|
||||
const aiGenEnabled = projectAiGenEnabled(projectId);
|
||||
const runCommitHooks = projectRunCommitHooks(projectId);
|
||||
|
Loading…
Reference in New Issue
Block a user