From 3c4e6f92562e7d0439be0d9ba3ae86f2eef61012 Mon Sep 17 00:00:00 2001
From: Udo Walter
Date: Wed, 1 May 2019 23:59:40 +0000
Subject: [webapp] very small ui changes

---
 webapp/src/components/ConfiguratorModuleConfig.vue | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'webapp/src/components/ConfiguratorModuleConfig.vue')

diff --git a/webapp/src/components/ConfiguratorModuleConfig.vue b/webapp/src/components/ConfiguratorModuleConfig.vue
index d61cce4..654f493 100644
--- a/webapp/src/components/ConfiguratorModuleConfig.vue
+++ b/webapp/src/components/ConfiguratorModuleConfig.vue
@@ -13,7 +13,8 @@
     "keyBind": "Key Bind",
     "defaultEntry": "Mark this entry as default",
     "entry": "Entry",
-    "spacer": "[Spacer]"
+    "spacer": "[Spacer]",
+    "noEntries": "No Entries"
   },
   "de": {
     "name": "Name",
@@ -28,7 +29,8 @@
     "keyBind": "Tastenbelegung",
     "defaultEntry": "Diesen Eintrag als Standard markieren",
     "entry": "Eintrag",
-    "spacer": "[Abstandshalter]"
+    "spacer": "[Abstandshalter]",
+    "noEntries": "Keine Einträge"
   }
 }
 </i18n>
@@ -60,7 +62,7 @@
       <div v-else class="text-xs-right">
         <v-subheader>{{ $t('entries') }}</v-subheader>
         <v-list>
-          <draggable v-model="items" :options="{handle:'.handle'}">
+          <draggable v-if="items.length" v-model="items" :options="{ handle:'.handle' }">
             <v-list-tile v-for="item in items" :key="item.entry.id" @click.stop>
               <v-list-tile-action class="handle">
                 <v-icon>drag_handle</v-icon>
@@ -83,6 +85,7 @@
               </v-list-tile-action>
             </v-list-tile>
           </draggable>
+          <div v-else class="text-xs-center">{{ $t('noEntries') }}</div>
         </v-list>
         <v-btn @click="addItem" color="success" fab small><v-icon dark>add</v-icon></v-btn>
       </div>
-- 
cgit v1.2.3-55-g7522

