don't reload the Tree/View pane after a Copy Branch operation; Copy Branch doesn't mutate the asset tree being viewed so not needed

This commit is contained in:
Scott Walters 2013-09-24 12:37:58 -05:00
parent b3714e6560
commit fbb143116e

View file

@ -163,6 +163,7 @@ sub copyBranch {
my $tree = WebGUI::ProgressTree->new($session, $assetIds );
my $maxValue = keys %{ $tree->flat };
$process->update(sub { $tree->json });
my $update_progress = sub {
# update the Fork's progress with how many are done
my $flat = $tree->flat;
@ -172,7 +173,7 @@ sub copyBranch {
maxValue => $maxValue,
value => $current_value,
message => 'Copying...',
reload => 1, # this won't take effect until Fork.pm returns finished => 1 and this status is propogated to WebGUI.Admin.prototype.openForkDialog's callback
# reload => 1, # this won't take effect until Fork.pm returns finished => 1 and this status is propogated to WebGUI.Admin.prototype.openForkDialog's callback; Copy Branch is non-mutating of the Tree/View mode so we don't need reload
@_,
};
$info->{refresh} = 1 if $maxValue == $current_value;