diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-26 13:51:39 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-01 14:27:28 -0400 |
commit | 01995873731e7efa517ca66246547b3084f8d529 (patch) | |
tree | ab708e66f058e49fbd2fcb8d2014a79ce51574d5 /src/main/java/com/gitblit/tickets/QueryResult.java | |
parent | ce048e750f7ae986dddfc8ab9b57750114d2b7b9 (diff) | |
download | gitblit-01995873731e7efa517ca66246547b3084f8d529.tar.gz gitblit-01995873731e7efa517ca66246547b3084f8d529.zip |
Allow milestone deletion within the edit milestone page
Diffstat (limited to 'src/main/java/com/gitblit/tickets/QueryResult.java')
-rw-r--r-- | src/main/java/com/gitblit/tickets/QueryResult.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/tickets/QueryResult.java b/src/main/java/com/gitblit/tickets/QueryResult.java index 9f5d3a55..7a2b1abe 100644 --- a/src/main/java/com/gitblit/tickets/QueryResult.java +++ b/src/main/java/com/gitblit/tickets/QueryResult.java @@ -74,6 +74,14 @@ public class QueryResult implements Serializable { return type != null && Type.Proposal == type; } + public boolean isOpen() { + return !status.isClosed(); + } + + public boolean isClosed() { + return status.isClosed(); + } + public boolean isMerged() { return Status.Merged == status && !StringUtils.isEmpty(mergeSha); } |