mirror of https://github.com/morpheus65535/bazarr
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
|
@ -734,6 +734,7 @@
|
||||||
const array_release_info = data.release_info;
|
const array_release_info = data.release_info;
|
||||||
let i;
|
let i;
|
||||||
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content season">';
|
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++) {
|
for (i = 0; i < array_release_info.length; i++) {
|
||||||
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
|
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;
|
const array_release_info = data.release_info;
|
||||||
let i;
|
let i;
|
||||||
let text = '<div class="ui fluid accordion"><div class="title"><i class="dropdown icon"></i>...</div><div class="content">';
|
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++) {
|
for (i = 0; i < array_release_info.length; i++) {
|
||||||
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
|
text += '<div class="ui tiny label" style="margin-bottom: 2px;">' + array_release_info[i] + '</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue