diff --git a/public/js/components/Search.js b/public/js/components/Search.js index 668db86..725661c 100644 --- a/public/js/components/Search.js +++ b/public/js/components/Search.js @@ -31,6 +31,7 @@ function search(query){ searchFor("label", "text", query), searchFor("digiterm", "display_text", query), searchFor("digilinelcd", "text", query) + searchFor("um_area_forsale", "description", query) ]; Promise.all(prom_list) diff --git a/public/js/components/SearchResult.js b/public/js/components/SearchResult.js index 1ac8c51..aec19bd 100644 --- a/public/js/components/SearchResult.js +++ b/public/js/components/SearchResult.js @@ -88,6 +88,12 @@ export default { ]); } + // For Sale Sign + if (obj.type == "um_area_forsale"){ + description = m("span", obj.attributes.description || "No Description"); + type = m("img", { src: "pics/um_area_forsale_sign_alpha.png" }); + } + //shop if (obj.type == "shop") { if (obj.attributes.stock == 0){