From 5042fe5fbf49b347fc28897e81157ce9ca85a053 Mon Sep 17 00:00:00 2001
From: Janis Streib <me@janis-streib.de>
Date: Wed, 26 Aug 2020 18:48:08 +0200
Subject: [PATCH] UPD: handle empty object title

---
 frontend/src/components/DBEditor.vue        | 1 -
 frontend/src/components/TransactionList.vue | 3 ++-
 frontend/src/views/macauth/MACAuth.vue      | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/frontend/src/components/DBEditor.vue b/frontend/src/components/DBEditor.vue
index 36fc69c1a..5b56fc657 100644
--- a/frontend/src/components/DBEditor.vue
+++ b/frontend/src/components/DBEditor.vue
@@ -217,7 +217,6 @@ export default {
     },
     object_title: {
       required: false,
-      type: String,
       default() {
         return null
       }
diff --git a/frontend/src/components/TransactionList.vue b/frontend/src/components/TransactionList.vue
index a5e93896e..e559ed332 100644
--- a/frontend/src/components/TransactionList.vue
+++ b/frontend/src/components/TransactionList.vue
@@ -38,7 +38,7 @@
           </div>
           <b-card-body class="element-content">
             {{ function2text(element.object_function) }} in {{ element.object_fq_name }}<br/>
-            {{element.object_title}}
+            <span v-if="element.object_title">{{element.object_title}}</span>
             <ul>
               <li v-for="field in element.preview_fields" v-bind:key="field">
                 {{ element.func_descr[field].description_sys_scope }}:
@@ -177,6 +177,7 @@ export default {
     },
     async executeTa() {
       await this.$store.dispatch('executeTransaction')
+      this.$store.commit('reloadRouterComp')
     }
   },
   data() {
diff --git a/frontend/src/views/macauth/MACAuth.vue b/frontend/src/views/macauth/MACAuth.vue
index 1242136bd..67bd906cd 100644
--- a/frontend/src/views/macauth/MACAuth.vue
+++ b/frontend/src/views/macauth/MACAuth.vue
@@ -198,6 +198,7 @@ export default {
       this.db_editor_object_function = 'create'
       this.db_editor_old_data = {}
       this.db_editor_presets = {'bcd_name': bcd.name}
+      this.db_editor_object_title = null
       this.$root.$emit('bv::show::modal', 'dbeditor_macauth')
     },
     editClient(item) {
-- 
GitLab