mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-30 11:32:04 +03:00
Renaming kind lane to branch
This commit is contained in:
parent
fd1e4be962
commit
baa0bc8978
@ -9,7 +9,7 @@ export const load: PageLoad = async () => {
|
||||
id: 'c1',
|
||||
name: 'feature-1',
|
||||
active: true,
|
||||
kind: 'lane',
|
||||
kind: 'branch',
|
||||
commits: [
|
||||
{
|
||||
id: 'c1',
|
||||
@ -60,7 +60,7 @@ export const load: PageLoad = async () => {
|
||||
id: 'b2',
|
||||
name: 'bugfix',
|
||||
active: true,
|
||||
kind: 'lane',
|
||||
kind: 'branch',
|
||||
commits: [
|
||||
{
|
||||
id: 'c2',
|
||||
@ -90,7 +90,7 @@ export const load: PageLoad = async () => {
|
||||
id: 'b3',
|
||||
name: 'stashed-things',
|
||||
active: false,
|
||||
kind: 'lane',
|
||||
kind: 'branch',
|
||||
commits: [
|
||||
{
|
||||
id: 'c2',
|
||||
|
@ -12,7 +12,7 @@
|
||||
function handleDndEvent(
|
||||
e: CustomEvent<DndEvent<Branch | File | Hunk>> & { target: HTMLElement }
|
||||
) {
|
||||
branches = e.detail.items.filter((item) => item.kind == 'lane') as Branch[];
|
||||
branches = e.detail.items.filter((item) => item.kind == 'branch') as Branch[];
|
||||
// TODO: Create lanes out of dropped files/hunks
|
||||
}
|
||||
</script>
|
||||
@ -22,8 +22,8 @@
|
||||
use:dndzone={{
|
||||
items: branches,
|
||||
flipDurationMs,
|
||||
types: ['lane'],
|
||||
receives: ['lane', 'file', 'hunk']
|
||||
types: ['branch'],
|
||||
receives: ['branch', 'file', 'hunk']
|
||||
}}
|
||||
on:consider={handleDndEvent}
|
||||
on:finalize={handleDndEvent}
|
||||
|
Loading…
Reference in New Issue
Block a user