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