This commit is contained in:
2019-06-03 23:48:00 +00:00
parent ce9c0ed4d0
commit cb55fa8809

View File

@@ -158,7 +158,7 @@
</template> </template>
<script> <script>
/* eslint-disable */ /* xeslint-disable */
///////////////////////////// /////////////////////////////
// //
@@ -219,6 +219,7 @@ function generateMenu(vm, readOnly) {
{ divider: true, inset: false }, { divider: true, inset: false },
{ {
title: vm.$gzlocale.get("Duplicate"), title: vm.$gzlocale.get("Duplicate"),
icon: "clone", icon: "clone",
key: "inventory-widget-edit:duplicate", key: "inventory-widget-edit:duplicate",
vm: vm vm: vm
@@ -433,6 +434,7 @@ export default {
if (dialogResult == true) { if (dialogResult == true) {
//do the delete //do the delete
vm.formState.loading = true; vm.formState.loading = true;
var url = "Widget/" + vm.$route.params.id; var url = "Widget/" + vm.$route.params.id;
//TODO: check if it's a new record (no ID) or one from server (has id) //TODO: check if it's a new record (no ID) or one from server (has id)
vm.$gzform.deleteAllErrorBoxErrors(vm); vm.$gzform.deleteAllErrorBoxErrors(vm);