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:
parent
b3714e6560
commit
fbb143116e
1 changed files with 2 additions and 1 deletions
|
|
@ -163,6 +163,7 @@ sub copyBranch {
|
||||||
|
|
||||||
my $tree = WebGUI::ProgressTree->new($session, $assetIds );
|
my $tree = WebGUI::ProgressTree->new($session, $assetIds );
|
||||||
my $maxValue = keys %{ $tree->flat };
|
my $maxValue = keys %{ $tree->flat };
|
||||||
|
$process->update(sub { $tree->json });
|
||||||
my $update_progress = sub {
|
my $update_progress = sub {
|
||||||
# update the Fork's progress with how many are done
|
# update the Fork's progress with how many are done
|
||||||
my $flat = $tree->flat;
|
my $flat = $tree->flat;
|
||||||
|
|
@ -172,7 +173,7 @@ sub copyBranch {
|
||||||
maxValue => $maxValue,
|
maxValue => $maxValue,
|
||||||
value => $current_value,
|
value => $current_value,
|
||||||
message => 'Copying...',
|
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;
|
$info->{refresh} = 1 if $maxValue == $current_value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue