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 prefpane.label "Weave">
<!ENTITY accountTab.label "Account"> <!ENTITY accountTab.label "Account">
<!ENTITY syncTab.label "Data"> <!ENTITY syncTab.label "Data">
<!ENTITY clientsTab.label "Clients">
<!ENTITY addonsTab.label "Add-ons"> <!ENTITY addonsTab.label "Add-ons">
<!ENTITY advancedTab.label "Advanced"> <!ENTITY advancedTab.label "Advanced">

View File

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