mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #1492 from MihaelaStoica/CA-137249
CA-137249: Strange 'Completed' text shows while enabling or disabling HA
This commit is contained in:
commit
7a875cae94
@ -446,6 +446,8 @@ namespace XenAdmin
|
||||
|
||||
void actionChanged_(ActionBase action)
|
||||
{
|
||||
if (action.SuppressProgressReport) // suppress updates when the PureAsyncAction runs the action to populate the ApiMethodsToRoleCheck
|
||||
return;
|
||||
var meddlingAction = action as MeddlingAction;
|
||||
if (meddlingAction == null)
|
||||
statusProgressBar.Visible = action.ShowProgress && !action.IsCompleted;
|
||||
|
@ -303,7 +303,7 @@ namespace XenAdmin.Actions
|
||||
}
|
||||
}
|
||||
|
||||
protected bool SuppressProgressReport { get; set; }
|
||||
public bool SuppressProgressReport { get; set; }
|
||||
public void Tick(int percent, string description)
|
||||
{
|
||||
_description = description;
|
||||
|
@ -75,8 +75,10 @@ namespace XenAdmin.Actions
|
||||
RbacMethodList rbacMethods = new RbacMethodList();
|
||||
Session = new Session(RbacCollectorProxy.GetProxy(rbacMethods), Connection);
|
||||
base.SuppressProgressReport = true;
|
||||
var startDescription = Description;
|
||||
Run();
|
||||
base.SuppressProgressReport = false;
|
||||
Description = startDescription; // reset Description;
|
||||
return rbacMethods;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user