Cleanup 'Too many devices' dialog

Closes #263
This commit is contained in:
lilia 2015-07-13 16:57:45 -07:00
parent 7b6cb27f7f
commit 815b79dc64
5 changed files with 12 additions and 9 deletions

View file

@ -85,6 +85,9 @@
if (e.name === 'HTTPError' && e.code == 411) {
$('.progress-dialog').hide();
$('.error-dialog').show();
$('.error-dialog .ok').click(function(e) {
chrome.runtime.reload();
});
}
else {
throw e;

View file

@ -116,9 +116,9 @@
<div class='status'></div>
<div class='bar-container'><div class='bar'></div></div>
</div>
<div class='error-dialog'>
<div>Error: Too many devices.</div>
<button class='ok'>Continue</span>
<div class='error-dialog clearfix'>
<div class='panel'>Sorry, you have too many devices registered already. Try removing some.</div>
<button class='ok'>Ok</button>
</div>
</div>
</div>

View file

@ -6392,12 +6392,12 @@ ul.country-list {
padding: 1em;
margin: 0;
text-align: left; }
.modal-container .modal-main .confirmation-dialog, .modal-container .modal-main .progress-dialog {
.modal-container .modal-main .confirmation-dialog, .modal-container .modal-main .progress-dialog, .modal-container .modal-main .error-dialog {
padding: 1em;
text-align: left; }
.modal-container .modal-main .confirmation-dialog .number {
text-align: center; }
.modal-container .modal-main .confirmation-dialog button {
.modal-container .modal-main .confirmation-dialog button, .modal-container .modal-main .error-dialog button {
float: right;
margin-left: 10px; }
.modal-container .modal-main .progress-dialog {

File diff suppressed because one or more lines are too long

View file

@ -195,12 +195,12 @@ ul.country-list {
text-align: left;
}
.confirmation-dialog, .progress-dialog {
.confirmation-dialog, .progress-dialog, .error-dialog {
padding: 1em;
text-align: left;
}
.confirmation-dialog {
.number { text-align: center; }
.confirmation-dialog .number { text-align: center; }
.confirmation-dialog, .error-dialog {
button {
float: right;
margin-left: 10px;