Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Don't allow resetting work if the revision doesn't have work yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Dec 15, 2012
1 parent 5c24901 commit 2b77636
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions MonkeyWrench.Web.UI/ViewLane.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ public string GenerateLane (GetViewLaneDataResponse response)
} else {
if (response.RevisionWork.State == DBState.NotDone)
header.AppendFormat (" - <a href='ViewLane.aspx?lane_id={0}&amp;host_id={2}&amp;revision_id={1}&amp;action=ignorerevision'>don't build</a>", lane.id, dbr.id, host.id);
header.AppendFormat (" - <a href='ViewLane.aspx?lane_id={0}&amp;host_id={2}&amp;revision_id={1}&amp;action=clearrevision'>reset work</a>", lane.id, dbr.id, host.id);
header.AppendFormat (" - <a href='ViewLane.aspx?lane_id={0}&amp;host_id={2}&amp;revision_id={1}&amp;action=deleterevision'>delete work</a>", lane.id, dbr.id, host.id);
if (response.RevisionWork.State != DBState.NoWorkYet) {
header.AppendFormat (" - <a href='ViewLane.aspx?lane_id={0}&amp;host_id={2}&amp;revision_id={1}&amp;action=clearrevision'>reset work</a>", lane.id, dbr.id, host.id);
header.AppendFormat (" - <a href='ViewLane.aspx?lane_id={0}&amp;host_id={2}&amp;revision_id={1}&amp;action=deleterevision'>delete work</a>", lane.id, dbr.id, host.id);
}
}
}

Expand Down

0 comments on commit 2b77636

Please sign in to comment.