This commit is contained in:
2020-06-16 13:10:09 +00:00
parent 9e7a5e5d25
commit e09ed207d9
2 changed files with 23 additions and 29 deletions

View File

@@ -5,20 +5,6 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang
WIFI change 5g channel to 52,56,60 and 2g channel to 8
recheck before doing as it seems to vary, maybe someone else's is auto switching
Purple
https://www.amazon.ca/Mercer-Culinary-Millennia-10-Inch-Purple/dp/B087CD8NM7
Red
https://www.amazon.ca/Mercer-Culinary-Millennia-10-Inch-Handle/dp/B087CCYH4Z/
Blue
https://www.amazon.ca/Mercer-Culinary-M23210BL-Bread-10-Inch/dp/B087CCVJX2/
Green
https://www.amazon.ca/Mercer-Culinary-Millennia-10-Inch-Handle/dp/B087CDVVWL/
Yellow
https://www.amazon.ca/Mercer-Culinary-Millennia-Couteau-ondulé/dp/B087CD95P7/
todo: Evaluate UI

View File

@@ -19,7 +19,9 @@
<div class="text-h5 mt-8 mb-2">
{{ $ay.t("GenerateSampleData") }}
</div>
<v-col cols="12" sm="6" lg="4" xl="3">
alert info if insufficient rights to generate "You must be logged in
as the SuperUser account to do this"
<v-col cols="12" sm="6">
<v-select
v-model="seedLevel"
:items="selectLists.seedLevels"
@@ -29,7 +31,14 @@
:label="$ay.t('SeedLevel')"
></v-select>
</v-col>
trigger button
<v-col cols="12">
<v-btn
:disabled="formState.readOnly"
@click="generate()"
class="my-8 mr-4"
>{{ $ay.t("StartSeeding") }}</v-btn
>
</v-col>
</v-col>
</v-row>
</v-form>
@@ -97,6 +106,11 @@ export default {
"https://contact.ayanova.com/contact?dbid=" +
window.$gz.store.state.globalSettings.dbId
);
},
StartSeeding() {
//prompt erase data if necessary
//call seed route
//ideally some kind of job checking ui showing feedback would be nice
}
}
};
@@ -143,7 +157,7 @@ function initForm(vm) {
// (async function() {
try {
await fetchTranslatedText(vm);
// await populateSelectionLists(vm);
await populateSelectionLists(vm);
} catch (err) {
reject(err);
}
@@ -166,28 +180,22 @@ function fetchTranslatedText(vm) {
"SeedLevelSmall",
"SeedLevelMedium",
"SeedLevelLarge",
"SeedLevelHuge"
"SeedLevelHuge",
"StartSeeding"
]);
}
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*" }
{ name: vm.$ay.t("SeedLevelSmall"), id: "small" },
{ name: vm.$ay.t("SeedLevelMedium"), id: "medium" },
{ name: vm.$ay.t("SeedLevelLarge"), id: "large" },
{ name: vm.$ay.t("SeedLevelHuge"), id: "huge" }
]
);
}
</script>