changed orthography
This commit is contained in:
parent
8073b2d893
commit
d35af6ae61
|
@ -788,7 +788,7 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
renderCategoryHints(){
|
||||
const ml = document.querySelector("d4s-ccp-methodlist")
|
||||
const cats = ml.getCategoryHints()
|
||||
if(cats.indexOf("Uncategorized") === -1) cats.push("Uncategorized")
|
||||
if(cats.indexOf("Uncategorised") === -1) cats.push("Uncategorised")
|
||||
return `
|
||||
<datalist id="categoryhints">
|
||||
${cats.map(c=>`<option value="${c}">${c}</option>`)}
|
||||
|
|
|
@ -191,7 +191,7 @@ class CCPMethodList extends HTMLElement{
|
|||
this.#filtered = this.#filtered.reduce((catalog, meth)=>{
|
||||
const categories = meth.metadata.filter(md=>md.role === "category").map(c=>c.title)
|
||||
if(categories.length === 0){
|
||||
catalog["Uncategorized"].push(meth)
|
||||
catalog["Uncategorised"].push(meth)
|
||||
}else{
|
||||
for(let c in categories){
|
||||
const category = categories[c]
|
||||
|
@ -200,7 +200,7 @@ class CCPMethodList extends HTMLElement{
|
|||
}
|
||||
}
|
||||
return catalog
|
||||
}, { "Uncategorized" : []})
|
||||
}, { "Uncategorised" : []})
|
||||
}
|
||||
|
||||
getCategoryHints(){
|
||||
|
|
Loading…
Reference in New Issue