From 477ff921e7e6d19e02517f90bee4131fc9632a45 Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 30 Jun 2021 23:59:28 -0700 Subject: [PATCH] add retrieval after storage ux (#259) --- controller/app/index.js | 16 ++++++++++++++++ controller/static/index.html | 13 +++++++++++++ 2 files changed, 29 insertions(+) diff --git a/controller/app/index.js b/controller/app/index.js index 3836985..593bc5c 100644 --- a/controller/app/index.js +++ b/controller/app/index.js @@ -9,6 +9,7 @@ window.setauth = (a) => { $().ready(() => { $('#newSchedule').cronPicker(); + $('#newretafterstoreSchedule').cronPicker(); $("#addDone").hide(); if ($('#newSR').is(':checked')) { @@ -37,6 +38,17 @@ $().ready(() => { } }) + if (!$('#newRepeatRetAfterStore').is(':checked')) { + $("#retafterstoreschedule").hide(); + } + $("#newRepeatRetAfterStore").on('change', () => { + if ($('#newRepeatRetAfterStore').is(':checked')) { + $("#retafterstoreschedule").show(); + } else { + $("#retafterstoreschedule").hide(); + } + }) + $("#addtask button").on('click', doSubmit); $("schedulesection form").on('submit', doSubmit); @@ -125,6 +137,10 @@ function doSubmit(e) { "CARExport": false, "MaxPriceAttoFIL": 20000000000, } + if ($('#newRepeatRetAfterStore').is(':checked')) { + data.RetrievalSchedule = $('#newretafterstoreSchedule').val() + data.RetrievalScheduleLimit = $('#newretafterstoreScheduleLimit').val() + } } else { data = { "Miner": miner, diff --git a/controller/static/index.html b/controller/static/index.html index cb5ec55..295fae4 100644 --- a/controller/static/index.html +++ b/controller/static/index.html @@ -74,6 +74,19 @@

Fast Retrieval +
+
+ + +
+
+ +
+
+ + +
+