mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 22:06:09 +00:00
Compare commits
No commits in common. "6afdc783606cda014333787f4911557ff680c31f" and "c624c327c3e50a36cfff47f362d6aa836325a887" have entirely different histories.
6afdc78360
...
c624c327c3
@ -1,6 +1,6 @@
|
||||
flask
|
||||
yt-dlp
|
||||
python-magic-bin
|
||||
python-magic
|
||||
Pillow
|
||||
mutagen
|
||||
requests
|
||||
|
@ -536,18 +536,15 @@ function displayLibraryControls(data) {
|
||||
$('.library-delete').hide();
|
||||
}
|
||||
|
||||
const select = $('#filter-dir');
|
||||
const dataList = $('#upload-target-dirs');
|
||||
const dirs = [];
|
||||
filter_dir.find('option').each(function(i, dir_element){
|
||||
dirs.push(dir_element.value);
|
||||
});
|
||||
select.find('option').remove();
|
||||
dataList.find('option').remove();
|
||||
if (data.dirs.length > 0) {
|
||||
console.log(data.dirs);
|
||||
data.dirs.forEach(function(dir) {
|
||||
if(!dirs.includes(dir)) {
|
||||
$('<option value="' + dir + '">' + dir + '</option>').appendTo(filter_dir);
|
||||
$('<option value="' + dir + '">').appendTo(dataList);
|
||||
}
|
||||
$('<option value="' + dir + '">' + dir + '</option>').appendTo(select);
|
||||
$('<option value="' + dir + '">').appendTo(dataList);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -180,6 +180,7 @@
|
||||
<label for="filter-dir">{{ tr('directory') }}</label>
|
||||
<div id="filter-path" class="input-group mb-2">
|
||||
<select class="form-control form-control-sm" id="filter-dir" disabled>
|
||||
<option value="">.</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user