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 authored and Eric Callahan committed 2021-05-18 19:12:54 -04:00
1 parent 5756e27711
commit 7744b1fd8a
1 file changed
+1 -1
+1 -1
View File
@@ -798,7 +798,7 @@ function handle_file_list_changed(file_info) {
// Update the jstree based on the action and info
let parent_node = parse_node_path(file_info.item.root, file_info.item.path);
$("#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(
file_info.source_item.root, file_info.source_item.path)
if (src_parent_node != parent_node)