Commit 392c16ec authored by Gyuris Szabolcs's avatar Gyuris Szabolcs

cosmetic changes

parent 73d36e3a
......@@ -10,19 +10,20 @@ function onLoadProvider(provider) {
.createInstance(Components.interfaces.nsIMessenger);
let repoName = document.getElementById("repo-name");
repoName.textContent = provider.repoName;
repoName.textContent = provider.serviceURL;
let fileSpaceUsed = document.getElementById("file-space-used");
fileSpaceUsed.textContent = messenger.formatFileSize(provider.fileSpaceUsed);
let fileSpaceUsedSwatch = document.getElementById("file-space-used-swatch");
fileSpaceUsedSwatch.style.backgroundColor = pv.Colors.category20.values[0];
let remainingFileSpace = document.getElementById("remaining-file-space");
remainingFileSpace.textContent = messenger.formatFileSize(
remainingFileSpace.textContent = provider.remainingFileSpace < 0 ? unknownSize : messenger.formatFileSize(
provider.remainingFileSpace);
let remainingFileSpaceSwatch = document.getElementById("remaining-file-space-swatch");
remainingFileSpaceSwatch.style.backgroundColor = pv.Colors.category20.values[1];
let totalSpace = provider.fileSpaceUsed + provider.remainingFileSpace;
let pieScale = 2 * Math.PI / totalSpace;
let spaceDiv = document.getElementById("provider-space-visuals");
......
......@@ -25,7 +25,7 @@
</div>
<div id="provider-name">
<h1>SeaFile</h1>
<div id="repo-name"></div>
<h2 id="repo-name"></h2>
</div>
</div>
......
......@@ -36,14 +36,12 @@ nsSeaFile.prototype = {
get type() "SeaFile",
get displayName() "SeaFile",
get serviceURL() "https://seafile.oregpreshaz.eu",
get serviceURL() gServerUrl + " - " + this._repoName,
get iconClass() "chrome://cloudfile-seafile/skin/seafile_16.png",
get accountKey() this._accountKey,
get lastError() this._lastErrorText,
get settingsURL() "chrome://cloudfile-seafile/content/settings.xhtml",
get managementURL() "chrome://cloudfile-seafile/content/management.xhtml",
get repoName() this._repoName,
get repoId() this._repoId,
_accountKey: false,
_prefBranch: null,
......@@ -715,10 +713,10 @@ nsSeaFile.prototype = {
*/
get fileUploadSizeLimit() this._maxFileSize,
get remainingFileSpace() this._availableStorage,
get remainingFileSpace() (this._availableStorage-this._fileSpaceUsed),
get fileSpaceUsed() this._fileSpaceUsed,
/**
* Attempts to delete an uploaded file.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment