mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 01:02:19 +00:00
release info in manual search results
In manual search dialog, show dropdown icon only when there is more than one element in release_info array. Otherwise just show the release info without dropdown button.
This commit is contained in:
parent
d3d7991db7
commit
ec7cf0734e
2 changed files with 2 additions and 0 deletions
|
@ -734,6 +734,7 @@
|
|||
const array_release_info = data.release_info;
|
||||
let i;
|
||||
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content season">';
|
||||
if (array_release_info.length <= 1) text = '<div><div class="content season">';
|
||||
for (i = 0; i < array_release_info.length; i++) {
|
||||
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
|
||||
}
|
||||
|
|
|
@ -674,6 +674,7 @@
|
|||
const array_release_info = data.release_info;
|
||||
let i;
|
||||
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content">';
|
||||
if (array_release_info.length <= 1) text = '<div><div class="content">';
|
||||
for (i = 0; i < array_release_info.length; i++) {
|
||||
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue