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