- Use a different sync error icon for version cut-offs
- Use full sync error for icon tooltip
This commit is contained in:
parent
40222ebf93
commit
8f0bc38da3
3 changed files with 21 additions and 5 deletions
|
@ -785,9 +785,15 @@ Zotero.Sync.Runner = new function () {
|
|||
if (status == 'warning' || status == 'error') {
|
||||
icon.setAttribute('status', '');
|
||||
warning.hidden = false;
|
||||
warning.setAttribute('mode', status);
|
||||
warning.setAttribute('error', status == 'error');
|
||||
warning.tooltipText = "A sync error occurred. Click to view details.";
|
||||
if (Zotero.Sync.Server.upgradeRequired) {
|
||||
Zotero.Sync.Server.upgradeRequired = false;
|
||||
warning.setAttribute('mode', 'upgrade');
|
||||
buttonText = null;
|
||||
}
|
||||
else {
|
||||
warning.setAttribute('mode', status);
|
||||
}
|
||||
warning.tooltipText = message;
|
||||
warning.onclick = function () {
|
||||
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
|
||||
.getService(Components.interfaces.nsIWindowMediator);
|
||||
|
@ -1132,6 +1138,7 @@ Zotero.Sync.Server = new function () {
|
|||
|
||||
this.canAutoResetClient = true;
|
||||
this.manualSyncRequired = false;
|
||||
this.upgradeRequired = false;
|
||||
this.nextLocalSyncDate = false;
|
||||
this.apiVersion = 8;
|
||||
|
||||
|
@ -1823,6 +1830,10 @@ Zotero.Sync.Server = new function () {
|
|||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'UPGRADE_REQUIRED':
|
||||
Zotero.Sync.Server.upgradeRequired = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
BIN
chrome/skin/default/zotero/bell_error.png
Normal file
BIN
chrome/skin/default/zotero/bell_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 813 B |
|
@ -212,17 +212,22 @@
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
#zotero-tb-sync-warning
|
||||
#zotero-tb-sync-warning, #zotero-tb-sync-warning[mode=warning]
|
||||
{
|
||||
list-style-image: url(chrome://zotero/skin/error.png);
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
#zotero-tb-sync-warning[error=true]
|
||||
#zotero-tb-sync-warning[mode=error]
|
||||
{
|
||||
list-style-image: url(chrome://zotero/skin/exclamation.png);
|
||||
}
|
||||
|
||||
#zotero-tb-sync-warning[mode=upgrade]
|
||||
{
|
||||
list-style-image: url(chrome://zotero/skin/bell_error.png);
|
||||
}
|
||||
|
||||
#zotero-tb-sync {
|
||||
list-style-image: url(chrome://zotero/skin/arrow_rotate_static.png);
|
||||
margin-left: -2px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue