From c0310f5d7304c05a0b65b14913c0dcb37cdf2a5a Mon Sep 17 00:00:00 2001 From: desumai Date: Tue, 30 Apr 2024 16:21:51 -0400 Subject: [PATCH] Add to Storeroom UI Upgrade Dialog/Modal now stays open when adding existing item to storeroom and shows more status messages. Still have to implement database update when uploading item to storeroom (or just update the database whenever we make a change to Maximo) --- assets/maximo.js | 4 ++-- renderer/item_main.html | 51 ++++++++++++++++++++++++++++++++++++++++- renderer/item_main.js | 21 +++++++++++++++-- renderer/worker.js | 2 +- 4 files changed, 72 insertions(+), 6 deletions(-) diff --git a/assets/maximo.js b/assets/maximo.js index ae1c5a3..288c3f1 100644 --- a/assets/maximo.js +++ b/assets/maximo.js @@ -331,11 +331,11 @@ class Maximo { throw new Error(parseInt(statuscode)); } } - + //TODO: also return maximo link to item in inventory /** * Upload item to inventory * @param {object} item information regarding item to be added to storeroom - * @return {number} status message + * @return {0|1} status message. 0 if failure and 1 if success (Note: why didn't we just use the HTTP codes?) */ async uploadToInventory(item) { try { diff --git a/renderer/item_main.html b/renderer/item_main.html index b5d74b2..182f2f8 100644 --- a/renderer/item_main.html +++ b/renderer/item_main.html @@ -64,12 +64,21 @@ +
+
+
+ + +
+
+
@@ -967,6 +976,46 @@

+