Skip to content

Commit

Permalink
reload dashboard does not always work #163
Browse files Browse the repository at this point in the history
added option to unload dashboard : System.Web.HttpRuntime.UnloadAppDomain()
  • Loading branch information
RubenWillems committed Jul 13, 2014
1 parent c7fa34d commit 6890700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ public IResponse Execute(ICruiseRequest cruiseRequest)
{
Logout();
}
else if (action == this.translations.Translate("Restart dashboard"))
{
HttpRuntime.UnloadAppDomain();
}
else
{
velocityContext["Error"] = this.translations.Translate("Unknown action '{0}'", action);
Expand Down
2 changes: 2 additions & 0 deletions project/WebDashboard/templates/AdministerDashboard.vm
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ label
<input type="button" id="loadPackageButton" value="$translations.Translate("Load Package")" />
<input type="submit" value="$translations.Translate("Reload dashboard")" name="Action" />
<input type="submit" value="$translations.Translate("Logout")" name="Action" />
<input type="submit" value="$translations.Translate("Restart dashboard")" name="Action" style="margin-left: 50px;" />

</div>
</form>
</fieldset>
Expand Down

0 comments on commit 6890700

Please sign in to comment.