Use build numbers in changeset tag, and also in help dialog (for testers)
authorAndy Allan <gravitystorm@gmail.com>
Wed, 3 Nov 2010 16:44:24 +0000 (16:44 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 3 Nov 2010 16:44:24 +0000 (16:44 +0000)
net/systemeD/potlatch2/help/HelpDialog.mxml
net/systemeD/potlatch2/save/SaveDialog.mxml

index fb7ff0c..12035f2 100644 (file)
   </mx:TabNavigator>
 
   <mx:ControlBar>
+    <mx:Label text="Version: {Application.application.version} Build: {Application.application.build_number}" />
     <mx:Spacer width="100%"/>
     <mx:Button label="Ok" click="PopUpManager.removePopUp(this);"/>
   </mx:ControlBar>
index 8407a06..2f4a994 100644 (file)
@@ -8,6 +8,7 @@
   <mx:ArrayCollection id="changesetTags">
     <mx:Object k="created_by" v="Potlatch 2"/>
     <mx:Object k="version" v="{Application.application.version}"/>
+    <mx:Object k="build" v="{Application.application.build_number}"/>
     <mx:Object k="comment" v=""/>
   </mx:ArrayCollection>
   
     private function allowForEdit(event:DataGridEvent):void {
         /* check before editing the tag grid that it's neither created_by nor version tags */
         var item:Object = ((event.currentTarget as DataGrid).dataProvider as ArrayCollection)[event.rowIndex];
-        if(item.k == 'created_by' || item.k == 'version') {
+        if(item.k == 'created_by' || item.k == 'version' || item.k == 'build') {
           event.preventDefault();
         }
     }
         var editor:TextInput = (event.currentTarget as DataGrid).itemEditorInstance as TextInput;
 
         if( event.dataField == "k" ) {
-          if( editor.text == 'created_by' || editor.text == 'version' ) {
+          if( editor.text == 'created_by' || editor.text == 'version' || editor.text == 'build') {
             event.preventDefault();
           }
         }