Fix for loop in Sync quota dialog.

This commit is contained in:
wolfbeast 2018-06-06 17:00:21 +02:00 • committed by Roy Tam
commit b1e44f4685

View file

@ -193,10 +193,15 @@ var gUsageTreeView = {
return; return;
} }
toremove = [this._byname[coll].title for each (coll in toremove)]; // Tycho: toremove = [this._byname[coll].title for each (coll in toremove)];
toremove = toremove.join(gSyncQuota.bundle.getString("quota.list.separator")); let toremovetitles = [];
for (let coll in toremove) {
toremovetitles.push(this._byname[coll].title);
}
toremovetitles = toremovetitles.join(gSyncQuota.bundle.getString("quota.list.separator"));
caption.firstChild.nodeValue = gSyncQuota.bundle.getFormattedString( caption.firstChild.nodeValue = gSyncQuota.bundle.getFormattedString(
"quota.removal.label", [toremove]); "quota.removal.label", [toremovetitles]);
if (freeup) if (freeup)
caption.firstChild.nodeValue += gSyncQuota.bundle.getFormattedString( caption.firstChild.nodeValue += gSyncQuota.bundle.getFormattedString(
"quota.freeup.label", gSyncQuota.convertKB(freeup)); "quota.freeup.label", gSyncQuota.convertKB(freeup));