test_client: update file list changed notification

Handle the new action nomenclature correctly.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-03-19 20:11:47 -04:00 committed by Eric Callahan
parent 5756e27711
commit 7744b1fd8a
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ function handle_file_list_changed(file_info) {
// Update the jstree based on the action and info // Update the jstree based on the action and info
let parent_node = parse_node_path(file_info.item.root, file_info.item.path); let parent_node = parse_node_path(file_info.item.root, file_info.item.path);
$("#filelist").jstree('refresh_node', parent_node); $("#filelist").jstree('refresh_node', parent_node);
if (file_info.action == "move_item") { if (file_info.action.startsWith("move_")) {
let src_parent_node = parse_node_path( let src_parent_node = parse_node_path(
file_info.source_item.root, file_info.source_item.path) file_info.source_item.root, file_info.source_item.path)
if (src_parent_node != parent_node) if (src_parent_node != parent_node)