forked from MapComplete/MapComplete
Move license picker into usersettings, add possibility to highlight a setting
This commit is contained in:
parent
9202cbe8e2
commit
4ed88609e5
16 changed files with 204 additions and 103 deletions
|
@ -155,14 +155,13 @@ export class Translation extends BaseUIElement {
|
|||
return el
|
||||
}
|
||||
|
||||
const linkToWeblate = new LinkToWeblate(self.context, self.translations)
|
||||
|
||||
const wrapper = document.createElement("span")
|
||||
wrapper.appendChild(el)
|
||||
Locale.showLinkToWeblate.addCallbackAndRun((doShow) => {
|
||||
if (!doShow) {
|
||||
return
|
||||
}
|
||||
const linkToWeblate = new LinkToWeblate(self.context, self.translations)
|
||||
wrapper.appendChild(linkToWeblate.ConstructElement())
|
||||
return true
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue