Skip to content
Snippets Groups Projects
Commit 8c27c5d4 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Handling pest Not found in database

parent aa6b6fe3
Branches
No related tags found
No related merge requests found
......@@ -523,7 +523,7 @@ export default {
if(lstPestIds.length===0)
{
lstPests.push({"pestId":'', "pestName":'Not found in database'});
lstPests.push({"pestId":-10, "pestName":this.$i18n.t("observation.unregisteredpest")});
}
else{
let lstPestList = JSON.parse(localStorage.getItem(CommonUtil.CONST_STORAGE_PEST_LIST));
......
......@@ -24,6 +24,7 @@
"observation.msg" : "Observation",
"observation.selectcrop" : "Select crop",
"observation.selectpest" : "Select pest",
"observation.unregisteredpest" : "Unknown to our database",
"photo.label.takephoto" : "Take photo",
"photo.label.selectphoto" : "Select photo",
......
......@@ -24,6 +24,7 @@
"observation.msg" : "Registrer observasjon",
"observation.selectcrop" : "Velg kultur",
"observation.selectpest" : "Velg skadegjører",
"observation.unregisteredpest" : "Ukjent for VIPS-databasen",
"photo.label.takephoto" : "Ta bilde",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment