Skip to content

Commit 45e5ff0

Browse files
giwtygiwty
authored andcommitted
add dismiss alert
1 parent 78e4830 commit 45e5ff0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

resources/app/app.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,17 @@ <h5 class="progress-type">Loading...</h5>
6464
{{if keys === "false"}}
6565
<div id="missingkeys" class="alert center alert-danger" role="alert" >
6666
Prod.keys was not found, deep NSP scan is disabled, library content is based on file names tags.
67+
<button type="button" class="close" data-dismiss="alert" aria-label="Close" onClick='$("#missingkeys").hide()'>
68+
<span aria-hidden="true">&times;</span>
69+
</button>
6770
</div>
6871
{{/if}}
6972
{{if num_skipped != 0}}
70-
<div class="alert center alert-warning" role="alert">
73+
<div id="scan_issues" class="alert center alert-warning" role="alert">
7174
{{:num_skipped}} out of {{:num_files}} files were skipped during scan, click on the issues tab to learn more
75+
<button type="button" class="close" data-dismiss="alert" aria-label="Close" onClick='$("#scan_issues").hide()'>
76+
<span aria-hidden="true">&times;</span>
77+
</button>
7278
</div>
7379
{{/if}}
7480
<section id="library-table" class="content"></section>

resources/app/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ $(function () {
166166
let table = new Tabulator("#updates-table", {
167167
layout:"fitDataStretch",
168168
initialSort:[
169-
{column:"Update date", dir:"desc"}, //sort by this first
169+
{column:"latest_update_date", dir:"desc"}, //sort by this first
170170
],
171171
pagination: "local",
172172
paginationSize: state.settings.gui_page_size,
@@ -200,7 +200,7 @@ $(function () {
200200
let table = new Tabulator("#dlc-table", {
201201
layout:"fitDataStretch",
202202
initialSort:[
203-
{column:"Title", dir:"desc"}, //sort by this first
203+
{column:"name", dir:"desc"}, //sort by this first
204204
],
205205
pagination: "local",
206206
paginationSize: state.settings.gui_page_size,
@@ -262,7 +262,7 @@ $(function () {
262262
if (state.library && state.library.library_data.length) {
263263
var table = new Tabulator("#library-table", {
264264
initialSort:[
265-
{column:"Title", dir:"desc"}, //sort by this first
265+
{column:"name", dir:"desc"}, //sort by this first
266266
],
267267
layout:"fitDataStretch",
268268
pagination: "local",

0 commit comments

Comments
 (0)