diff --git a/scripts/system/inventory/inventory.html b/scripts/system/inventory/inventory.html
index 01a77eff9e..bc27bd37be 100644
--- a/scripts/system/inventory/inventory.html
+++ b/scripts/system/inventory/inventory.html
@@ -80,11 +80,6 @@
{{item.url}}
-
-
Edit Item
-
-
-
-
-
-
-
-
-
-
- Cancel
-
-
-
-
-
- Yes
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ Cancel
+
+
+
+
+
+ Done
+
+
+
+
+
+
@@ -250,46 +257,57 @@
Enter the name of the item.
+
+
-
+
-
- Enter the URL of the item.
-
+
+ Enter the URL of the item.
+
-
+
-
+
-
- Cancel
-
-
-
-
-
- Add
-
-
-
+
+ Cancel
+
+
+
+
+
+ Add
+
+
+
+
+
@@ -305,48 +323,60 @@
{{receiveDialog.data.user}} is sending you an item.
-
+
-
-
-
-
-
-
-
- Reject
-
+
-
+
+
+
+
+
+
+
+ Reject
+
+
+
+
+
+ Accept
+
+
+
-
- Accept
-
-
-
+
@@ -362,47 +392,67 @@
Select a user to send this item to.
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- Cancel
-
+ Cancel
+
+
+
+
+
+ Send
+
+
+
-
-
-
- Send
-
-
-
+
@@ -488,6 +538,7 @@ new Vue({
},
addDialog: {
show: false,
+ valid: false,
data: {
"name": null,
"url": null,
@@ -495,6 +546,7 @@ new Vue({
},
editDialog: {
show: false,
+ valid: false,
url: null, // This is the key, the URL in data is what will overwrite this key.
data: {
"type": null,
@@ -504,6 +556,7 @@ new Vue({
},
receiveDialog: {
show: false,
+ valid: false,
data: {
"user": null,
"name": null,
@@ -513,6 +566,7 @@ new Vue({
},
shareDialog: {
show: false,
+ valid: false,
data: {
"url": null, // The item you want to share.
"recipient": null,
@@ -642,7 +696,7 @@ new Vue({
this.sendAppMessage("test", "testData");
},
sendInventory: function() {
-
+ alert("SAVING INVENTORY.");
},
receiveInventory: function() {
@@ -664,6 +718,15 @@ new Vue({
// EventBridge.emitWebEvent(JSON.stringify(JSONtoSend));
},
},
+ watch: {
+ // Whenever the item list changes, this will notice and then send it to the script to be saved.
+ items: {
+ deep: true,
+ handler() {
+ this.sendInventory();
+ }
+ }
+ },
computed: {
}