MCPcopy Index your code
hub / github.com/ollm/OpenComic / updateConfigLabels

Function updateConfigLabels

scripts/reading.js:3821–3846  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3819}
3820
3821function updateConfigLabels()
3822{
3823 let globalElement = template._globalElement();
3824
3825 let empty = globalElement.querySelector('.reading-labels-empty');
3826 let list = globalElement.querySelector('.reading-labels-list');
3827
3828 if(!empty || !list)
3829 return;
3830
3831 const labels = _config.labels || [];
3832
3833 if(labels.length)
3834 {
3835 empty.style.display = 'none';
3836 list.style.display = '';
3837 }
3838 else
3839 {
3840 empty.style.display = '';
3841 list.style.display = 'none';
3842 }
3843
3844 handlebarsContext.readingLabels = labels;
3845 list.innerHTML = template.load('reading.content.right.labels.list.html');
3846}
3847
3848function getLabelConfigKey()
3849{

Callers 1

loadReadingPagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected