changeset 1587:af17c29df8f0

unattended imports: added bottlenecks as import
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 14 Dec 2018 11:20:08 +0100
parents 3a30a6f4c96d
children 2888bfacd331
files client/src/components/importschedule/Importscheduledetail.vue
diffstat 1 files changed, 14 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Fri Dec 14 11:02:46 2018 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Fri Dec 14 11:20:08 2018 +0100
@@ -21,10 +21,10 @@
                   <translate>Imports</translate>
                 </small>
               </div>
-              <select v-model="import_" class="custom-select" id="import_">
-                <option v-for="option in this.$options.imports" :key="option">{{
-                  option
-                }}</option>
+              <select v-model="import_" class="custom-select" id="importtype">
+                <option :value="$options.IMPORTTYPES.BOTTLENECK"
+                  ><translate>Bottlenecks</translate></option
+                >
               </select>
             </div>
           </div>
@@ -35,12 +35,12 @@
                   <translate>Importtype</translate>
                 </small>
               </div>
-              <select v-model="import_" class="custom-select" id="importtype">
-                <option
-                  v-for="option in this.$options.importtype"
-                  :key="option"
-                  >{{ option }}</option
-                >
+              <select
+                v-model="importSource"
+                class="custom-select"
+                id="importsource"
+              >
+                <option></option>
               </select>
             </div>
           </div>
@@ -264,6 +264,7 @@
       importType: null,
       schedule: null,
       import_: null,
+      importSource: null,
       eMailNotification: false,
       easyCron: true,
       cronMode: "",
@@ -285,6 +286,9 @@
       }
     }
   },
+  IMPORTTYPES: {
+    BOTTLENECK: "BOTTLENECK"
+  },
   EVERY: app.$gettext("Every"),
   MINUTESPAST: app.$gettext("minutes past"),
   ON: app.$gettext("on"),
@@ -365,7 +369,6 @@
     }
   },
   imports: [],
-  importtype: [],
   on: "on",
   off: "off",
   periods: {