Bug 575993 - Sync Now and Disconnect buttons clickable before being connected [r=mbrubeck]

This commit is contained in:
Mark Finkle 2010-06-30 17:22:19 -04:00
parent 7d9092984e
commit 686aef48de
2 changed files with 6 additions and 3 deletions

View File

@ -438,14 +438,14 @@
<setting id="sync-user" type="string" title="&sync.username;" />
<setting id="sync-pass" type="string" inputtype="password" title="&sync.password;" />
<setting id="sync-secret" type="string" inputtype="password" title="&sync.secretPhrase;" />
<setting id="sync-device" type="string" title="&sync.deviceName;" onchange="WeaveGlue.changeName(this)"/>
<setting id="sync-device" type="string" title="&sync.deviceName;" onchange="WeaveGlue.changeName(this)" collapsed="true"/>
<setting id="sync-connect" type="control">
<button label="&sync.connect;" oncommand="WeaveGlue.connect();" />
</setting>
<setting id="sync-disconnect" type="control">
<setting id="sync-disconnect" type="control" collapsed="true">
<button label="&sync.disconnect;" oncommand="WeaveGlue.disconnect();" />
</setting>
<setting id="sync-sync" type="control">
<setting id="sync-sync" type="control" collapsed="true">
<button id="sync-syncButton" label="&sync.syncNow;" oncommand="WeaveGlue.sync();" />
</setting>
</settings>

View File

@ -40,6 +40,9 @@ let WeaveGlue = {
this._addListeners();
// Initialize the UI now
this._updateOptions();
// Generating keypairs is expensive on mobile, so disable it
Weave.Service.keyGenEnabled = false;
},