diff --git a/app/ayanova/src/components/inventorywidgetedit.vue b/app/ayanova/src/components/inventorywidgetedit.vue
new file mode 100644
index 00000000..b95f04f0
--- /dev/null
+++ b/app/ayanova/src/components/inventorywidgetedit.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+ User Profile
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ *indicates required field
+
+
+
+ Close
+ Save
+
+
+
+
+
+
+
+
+
diff --git a/app/ayanova/src/components/inventorywidgettop.vue b/app/ayanova/src/components/inventorywidgettop.vue
index a50f88d7..64b5c5db 100644
--- a/app/ayanova/src/components/inventorywidgettop.vue
+++ b/app/ayanova/src/components/inventorywidgettop.vue
@@ -6,24 +6,21 @@
fa-splotch
Widgets
-
-
+
fa-plus-circle
-
fa-filter
-
fa-sync
-
-
+
fa-ellipsis-v
+
/* xeslint-disable */
import pagedList from "../api/pagedlist";
+import WidgetEdit from "../components/inventorywidgetedit";
export default {
+ components: {
+ WidgetEdit
+ },
data() {
return {
dialog: false,
@@ -127,6 +128,11 @@ export default {
if (this.selected.length) this.selected = [];
else this.selected = this.Items.slice();
},
+
+ newItem() {
+ this.WidgetEdit.dialog = true;
+ this.dialog = true;
+ },
getDataFromApi() {
var listOptions = {
Offset: 0,
@@ -147,19 +153,16 @@ export default {
this.totalItems = res.paging.count;
});
},
-
editItem(item) {
this.editedIndex = this.Items.indexOf(item);
this.editedItem = Object.assign({}, item);
this.dialog = true;
},
-
deleteItem(item) {
const index = this.Items.indexOf(item);
confirm("Are you sure you want to delete this item?") &&
this.Items.splice(index, 1);
},
-
close() {
this.dialog = false;
setTimeout(() => {
@@ -167,7 +170,6 @@ export default {
this.editedIndex = -1;
}, 300);
},
-
save() {
if (this.editedIndex > -1) {
Object.assign(this.Items[this.editedIndex], this.editedItem);