WIP: Send the channel name and the channel edges seperately, so we're not repeating them constantly
This commit is currently broken and includes debug data for a failed attempt at rewriting the insert_edge logic
This commit is contained in:
parent
363867c65b
commit
5f9c56c8b0
13 changed files with 437 additions and 760 deletions
|
@ -173,7 +173,6 @@ pub fn init(cx: &mut AppContext) {
|
|||
|
||||
cx.add_action(
|
||||
|panel: &mut CollabPanel, action: &StartMoveChannel, _: &mut ViewContext<CollabPanel>| {
|
||||
dbg!(action);
|
||||
panel.channel_move = Some(*action);
|
||||
},
|
||||
);
|
||||
|
@ -181,7 +180,6 @@ pub fn init(cx: &mut AppContext) {
|
|||
cx.add_action(
|
||||
|panel: &mut CollabPanel, action: &LinkChannel, cx: &mut ViewContext<CollabPanel>| {
|
||||
if let Some(move_start) = panel.channel_move.take() {
|
||||
dbg!(action.to, &move_start);
|
||||
panel.channel_store.update(cx, |channel_store, cx| {
|
||||
channel_store
|
||||
.link_channel(move_start.channel_id, action.to, cx)
|
||||
|
@ -194,7 +192,6 @@ pub fn init(cx: &mut AppContext) {
|
|||
cx.add_action(
|
||||
|panel: &mut CollabPanel, action: &MoveChannel, cx: &mut ViewContext<CollabPanel>| {
|
||||
if let Some(move_start) = panel.channel_move.take() {
|
||||
dbg!(&move_start, action.to);
|
||||
panel.channel_store.update(cx, |channel_store, cx| {
|
||||
if let Some(parent) = move_start.parent_id {
|
||||
channel_store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue