UI for clients

This commit is contained in:
Chris Beard 2008-07-31 00:39:57 -07:00
parent 6223ac490a
commit 1070b0cce4
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<!ENTITY prefpane.label "Weave">
<!ENTITY accountTab.label "Account">
<!ENTITY syncTab.label "Data">
<!ENTITY clientsTab.label "Clients">
<!ENTITY addonsTab.label "Add-ons">
<!ENTITY advancedTab.label "Advanced">

View File

@ -64,19 +64,23 @@ ClientDataSvc.prototype = {
},
get name() {
return this._getCharPref("client.name", function() "cheese");
return this._getCharPref("client.name", function() "Firefox");
},
set GUID(value) {
Utils.prefs.setCharPref("client.name", value);
},
get type() {
return this._getCharPref("client.type", function() "gruyere");
return this._getCharPref("client.type", function() "desktop");
},
set GUID(value) {
Utils.prefs.setCharPref("client.type", value);
},
clients: function ClientData__clients() {
return this._remote.data;
},
_getCharPref: function ClientData__getCharPref(pref, defaultCb) {
let value;
try {