onasty/web/src/ExpirationOptions.elm (view raw)
Olexandr Smirnov
Olexandr Smirnov
ss2316544@gmail.com web: general refactor (#158)..., 11 months ago
ss2316544@gmail.com web: general refactor (#158)..., 11 months ago
| 1 | module ExpirationOptions exposing (expirationOptions) |
| 2 | |
| 3 | |
| 4 | expirationOptions : List { text : String, value : Int } |
| 5 | expirationOptions = |
| 6 | [ { text = "Never expires (default)", value = 0 } |
| 7 | , { text = "1 hour", value = 60 * 60 * 1000 } |
| 8 | , { text = "12 hours", value = 12 * 60 * 60 * 1000 } |
| 9 | , { text = "1 day", value = 24 * 60 * 60 * 1000 } |
| 10 | , { text = "3 days", value = 3 * 24 * 60 * 60 * 1000 } |
| 11 | , { text = "7 days", value = 7 * 24 * 60 * 60 * 1000 } |
| 12 | ] |