mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
32f8274929
Update `text` functions to `html` to support inserting the `span` elements Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
19 lines
482 B
JavaScript
19 lines
482 B
JavaScript
|
|
import { t } from '../../core/localizer';
|
|
import { uiPane } from '../pane';
|
|
import { uiSectionPrivacy } from '../sections/privacy';
|
|
|
|
export function uiPanePreferences(context) {
|
|
|
|
let preferencesPane = uiPane('preferences', context)
|
|
.key(t('preferences.key', { html: false }))
|
|
.title(t('preferences.title'))
|
|
.description(t('preferences.description'))
|
|
.iconName('fas-user-cog')
|
|
.sections([
|
|
uiSectionPrivacy(context)
|
|
]);
|
|
|
|
return preferencesPane;
|
|
}
|