slash and burn trace statements, and fix areas on vector background layers
[potlatch2.git] / net / systemeD / potlatch2 / save / OAuthPanel.mxml
index ea8d1e1fe4588b18c12d09c50bc22d04d87314c0..5f56f4a6af9446d18df11e0f2e948b5b7d6bd3ad 100644 (file)
@@ -4,7 +4,7 @@
        layout="vertical"
        horizontalAlign="center" title="Authorisation Required"
        creationComplete="getRequestToken()"
-       height="250">
+       height="290">
        
        <mx:ViewStack id="contentStack" width="100%" height="100%">
        
                label="http://oauth.dev.openstreetmap.org/oauth/authorize?somekey"
                click="openURL(authoriseURL); tryAccessButton.enabled=true;"/>
            <mx:Text width="100%">
-             <mx:text>Once you've authorised the access click the 'Try Access' button below</mx:text>
+             <mx:text>Once you've authorised the access click the 'Try Access' button below</mx:text> <!-- ' -->
            </mx:Text>
            <mx:Text styleName="failText" visible="false" id="deniedLabel">
              <mx:text><![CDATA[<b>Access was denied, please check, and try again</b>]]></mx:text>
            </mx:Text>
+           <mx:HBox width="100%" horizontalAlign="right">
+             <mx:CheckBox id="rememberMe" label="Remember authorisation" selected="true"/>
+           </mx:HBox>
          </mx:VBox>
        </mx:VBox>
        
             return _accessToken;
         }
         
+        public function get shouldRemember():Boolean {
+            return rememberMe.selected;
+        }
+        
         private function accessTokenError(event:IOErrorEvent):void {
             if ( lastHTTPStatus == 401 ) {
                 deniedLabel.htmlText = "<b>Access was denied, please check, and try again</b>";