Renaming kind lane to branch

This commit is contained in:
Mattias Granlund 2023-06-12 20:38:24 +02:00
parent fd1e4be962
commit baa0bc8978
2 changed files with 6 additions and 6 deletions

View File

@ -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',

View File

@ -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}