move_block_to_tab

Function move_block_to_tab 

Source
pub fn move_block_to_tab(
    store: &WaveStore,
    block_id: &str,
    source_tab_id: &str,
    dest_tab_id: &str,
    ws_id: &str,
    auto_close_source: bool,
) -> Result<(), StoreError>
Expand description

Move a block from one tab to another. Removes the block from source_tab_id.blockids and adds it to dest_tab_id.blockids. Updates block.parentoref to point to the destination tab. If auto_close_source is true, deletes the source tab when it becomes empty (only if the workspace has other tabs).