Skip to content

Commit 086f7e4

Browse files
Fixed list-of-lists on-delete callback for empty lists
1 parent 9abf973 commit 086f7e4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ function setUpListOfListsSection() {
209209

210210
function drawListOfLists() {
211211
chrome.storage.sync.get('allLists', function(allListsData) {
212+
var listBox = document.getElementById('list-of-lists-box');
213+
listBox.innerHTML = '';
212214
if (isEmpty(allListsData) || isEmpty(allListsData.allLists)) {
213-
// TODO
214215
console.log('No lists created!');
215-
return;
216+
listBox.innerHTML = 'No lists!';
216217
}
217218
allListsData = allListsData.allLists;
218-
var listBox = document.getElementById('list-of-lists-box');
219-
listBox.innerHTML = '';
219+
220220

221221
var table = document.createElement('table');
222222
table.appendChild(document.createElement('thead'));

style.css

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body {
1818

1919
.title-box {
2020
font-weight: bold;
21+
margin-bottom: 10px;
2122
}
2223

2324
.list-table, .item-table {

0 commit comments

Comments
 (0)