Feature: Held Devices Noticeboard
Provides a noticeboard for all devices, not just those assigned to users.
This commit is contained in:
@@ -37,20 +37,6 @@ namespace Disco.Web.Areas.Public.Models.UserHeldDevices
|
||||
if (!this.ReadyForReturn && this.EstimatedReturnTime.HasValue && this.EstimatedReturnTime.Value > n)
|
||||
{
|
||||
uhdm.EstimatedReturnTime = this.EstimatedReturnTime.ToFuzzy();
|
||||
if (this.EstimatedReturnTime.Value.Date == n.Date)
|
||||
{
|
||||
if (this.EstimatedReturnTime.Value < n.AddHours(2))
|
||||
{
|
||||
if (this.EstimatedReturnTime.Value < n.AddMinutes(12))
|
||||
{
|
||||
uhdm.UpdateAt = this.EstimatedReturnTime.Value;
|
||||
}
|
||||
else
|
||||
{
|
||||
uhdm.UpdateAt = this.EstimatedReturnTime.Value.AddMinutes(-10);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.ReadyForReturn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user