Merge remote-tracking branch 'gravitystorm/history'
[potlatch2.git] / net / systemeD / potlatch2 / history / HistoryDialog.mxml
index 1d995810a8839dbe2a99fe7f26ba5f0fc6fd874d..6296b29135d663d7f83187d26713773026a0df14 100644 (file)
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!---
     The History Dialog displays information about the history of an entity. As well as showing the different versions
-    of the entity, it displays synthetic history based on the entity's children. For example, the intermediate states
-    of a way while the nodes are rearranged are show.
+    of the entity, it displays synthetic history based on its children. For example, the intermediate states
+    of a way while the nodes are rearranged are shown.
 -->
 <s:TitleWindow
         xmlns:fx="http://ns.adobe.com/mxml/2009"
@@ -37,8 +37,7 @@
                 <fx:Component>
                   <s:GridItemRenderer>
                     <s:VGroup horizontalAlign="center" verticalAlign="middle" width="100%" height="100%">
-                      <s:Button label="Contact Mapper"
-                          click="parentDocument.message(data)"/>
+                      <s:Button label="Contact Mapper" click="parentDocument.parentDocument.message(data.user)"/>
                     </s:VGroup>
                   </s:GridItemRenderer>
                 </fx:Component>
@@ -51,7 +50,7 @@
 
 
   <s:controlBarContent>
-    <s:Button label="Revert" enabled="false" styleName="titleWindowButton" />
+    <!-- <s:Button label="Revert" enabled="false" styleName="titleWindowButton" /> -->
     <s:Spacer width="100%"/>
     <s:Button label="More Details..." enabled="{entity.id >= 0}" click="openEntityPage()" styleName="titleWindowButton" />
     <s:Button label="Cancel" click="PopUpManager.removePopUp(this);" styleName="titleWindowButton" />
         return null;
     }
 
-    public function message(entity:Entity):void {
-        if (entity.user != null) {
+    public function message(user:String):void {
+        if (user) {
             var urlBase:String = entity.connection.apiBase + '../../message/new/';
-            navigateToURL(new URLRequest(urlBase+entity.user), "potlatch_message");
+            navigateToURL(new URLRequest(urlBase+user), "potlatch_message");
         }
     }
     ]]>