Skip to content

Commit

Permalink
remove warning for sqlite database files
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jul 23, 2024
1 parent f2dc2c0 commit 1d20ea8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions public/js/components/pages/filebrowser/Filebrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
import format_size from "../../../util/format_size.js";
import format_time from "../../../util/format_time.js";
import { START, FILEBROWSER } from "../../Breadcrumb.js";
import { get_maintenance } from "../../../service/stats.js";
import { can_edit } from "./common.js";

export default {
Expand All @@ -34,7 +33,6 @@ export default {
};
},
methods: {
get_maintenance,
format_size,
format_time,
get_zip_url,
Expand Down Expand Up @@ -114,9 +112,6 @@ export default {
});
},
can_edit: can_edit,
is_database: function(filename) {
return filename.match(/.*(sqlite|sqlite-shm|sqlite-wal)$/i);
},
is_json_profile: function(filename) {
return filename.match(/^profile-.*.json$/);
},
Expand Down Expand Up @@ -242,7 +237,7 @@ export default {
<td></td>
<td></td>
</tr>
<tr v-for="item in result.items" v-bind:class="{'table-warning': is_database(item.name) && !get_maintenance()}">
<tr v-for="item in result.items">
<td>
<router-link :to="'/filebrowser' + result.dir + '/' + item.name" v-if="item.is_dir">
<i v-bind:class="get_icon_class(item)"></i>
Expand All @@ -251,7 +246,6 @@ export default {
<span v-if="!item.is_dir">
<i v-bind:class="get_icon_class(item)"></i>
{{item.name}}
<i class="fa-solid fa-triangle-exclamation" v-if="is_database(item.name) && !get_maintenance()" title="Database might be inconsistent when downloading without maintenance-mode enabled!"></i>
</span>
</td>
<td>
Expand Down

0 comments on commit 1d20ea8

Please sign in to comment.