Skip to content

Commit

Permalink
improve: no file entry handling
Browse files Browse the repository at this point in the history
  • Loading branch information
luftaquila committed Aug 2, 2024
1 parent 7dafaca commit 347cc9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ function ui_load_list(res) {
// clear the table
table.data.data = [];

// there is no file
if (res.length === 1 && res[0][1] === '0') {
toastr.warning('저장된 로그 파일 없음');
return;
}

res.forEach(x => {
let resp = x[0];
let size = x[1];
Expand Down

0 comments on commit 347cc9c

Please sign in to comment.