untagged!=unknown
[potlatch2.git] / net / systemeD / potlatch2 / TagViewer.mxml
index 6cb125059baf2d568721e086e7362faf66377fd4..b3cd05f623cb089d4c7f445e5d29e44d3754e435 100644 (file)
 
       private function blankFeatureIcon(entity:Entity):void {
           iconImage.source = null;
-          iconText.htmlText = entity == null ?
-               "<i>Nothing selected</i>" :
-               "<b>Not recognised</b><br/>Try looking at the tags under the advanced properties";
+                 if (entity == null) { 
+                       iconText.htmlText = "<i>Nothing selected</i>";
+                 } else if (entity.hasTags()) {
+                       iconText.htmlText = "<b>Not recognised</b><br/>Try looking at the tags under the advanced properties";
+                 } else {
+                       iconText.htmlText = "<b>No tags set</b><br/>Use the menu above to say what this "+entity.getType()+" is";
+          }
           popupChange.label = "unknown";
           setLimitTypes(entity);
           tw.setSelectedFeature(null);