mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-18 07:51:27 +00:00
Match search-index status wording in web dashboard
This commit is contained in:
@@ -186,14 +186,14 @@
|
||||
if (s.running) {
|
||||
$('indexStatus').className = 'status';
|
||||
$('indexStatus').textContent = s.stage === 'sync' || s.stage === 'syncing'
|
||||
? 'Rebuilding Meilisearch'
|
||||
? 'Rebuilding search index: ' + (s.documents_processed || 0)
|
||||
: 'Indexing ' + (s.library || '');
|
||||
const bits = [];
|
||||
if (s.library_number && s.library_total) bits.push('library ' + s.library_number + '/' + s.library_total);
|
||||
if (s.item) bits.push(s.item);
|
||||
if (s.item_number && s.item_total) bits.push('item ' + s.item_number + '/' + s.item_total);
|
||||
if (s.frames_total) bits.push((s.frames_processed || 0) + '/' + s.frames_total + ' frames');
|
||||
if (s.documents_processed && (s.stage === 'sync' || s.stage === 'syncing')) bits.push(s.documents_processed + ' documents');
|
||||
if (s.stage === 'sync' || s.stage === 'syncing') bits.length = 0;
|
||||
$('indexDetail').textContent = bits.join(' · ');
|
||||
$('indexNow').disabled = true;
|
||||
} else if (s.stage === 'failed') {
|
||||
|
||||
Reference in New Issue
Block a user