From 9e7a5e5d2541705091f47dbad93aed084958dedd Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 16 Jun 2020 00:11:58 +0000 Subject: [PATCH] --- ayanova/src/views/ay-evaluate.vue | 60 +++++++++++++++++++++---------- 1 file changed, 41 insertions(+), 19 deletions(-) diff --git a/ayanova/src/views/ay-evaluate.vue b/ayanova/src/views/ay-evaluate.vue index 7d3986f5..1f936c33 100644 --- a/ayanova/src/views/ay-evaluate.vue +++ b/ayanova/src/views/ay-evaluate.vue @@ -16,8 +16,19 @@ }} -
{{ $ay.t("GenerateSampleData") }}
- picklist of sizes +
+ {{ $ay.t("GenerateSampleData") }} +
+ + + trigger button
@@ -57,10 +68,9 @@ export default { return { formCustomTemplateKey: null, selectLists: { - translations: [] + seedLevels: [] }, - currentStep: 1, - obj: {}, + seedLevel: null, formState: { ready: false, dirty: false, @@ -151,21 +161,33 @@ function fetchTranslatedText(vm) { "Welcome", "GenerateSampleData", "EvaluationGuide", - "HelpTechSupport" + "HelpTechSupport", + "SeedLevel", + "SeedLevelSmall", + "SeedLevelMedium", + "SeedLevelLarge", + "SeedLevelHuge" ]); } -// ////////////////////// -// // -// // -// function populateSelectionLists(vm) { -// //http://localhost:7575/api/v8/translation/list -// return window.$gz.api.get("translation/list").then(res => { -// if (res.error) { -// window.$gz.errorHandler.handleFormError(res.error, vm); -// } else { -// vm.selectLists.translations = res.data; -// } -// }); -// } +todoThis +///////////////////////////////// +// +// +function populateSelectionLists(vm) { + vm.selectLists.seedLevels.push( + ...[ + { name: vm.$ay.t("DateRangePast6Hours"), id: "*past6hours*" }, + { name: vm.$ay.t("DateRangePast24Hours"), id: "*past24hours*" }, + { name: vm.$ay.t("DateRangePast7Days"), id: "*past7days*" }, + { name: vm.$ay.t("DateRangePast30Days"), id: "*past30days*" }, + { + name: vm.$ay.t("DateRangeInTheLastSixMonths"), + id: "*last6months*" + }, + { name: vm.$ay.t("DateRangePastYear"), id: "*pastyear*" } + ] + ); +} +