mirror of
https://github.com/mue/mue.git
synced 2026-07-21 16:04:22 +02:00
fix: search dropdown, missing translations, overview date
This commit is contained in:
@@ -106,6 +106,12 @@ export default class OrderSettings extends PureComponent {
|
||||
|
||||
async getNews() {
|
||||
const data = await (await fetch('https://api.muetab.com/news')).json();
|
||||
data.news.date = new window.Date(data.news.date).toLocaleDateString(variables.languagecode.replace('_', '-'), {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
});
|
||||
|
||||
this.setState({
|
||||
news: data.news,
|
||||
newsDone: true,
|
||||
|
||||
@@ -213,7 +213,12 @@ export default class QuickLinks extends PureComponent {
|
||||
category="quicklinks"
|
||||
/>
|
||||
</SettingsItem>
|
||||
<SettingsItem title="Quick Links Styling" description="Customise Quick Links Appearance.">
|
||||
<SettingsItem
|
||||
title={variables.getMessage('modals.main.settings.sections.quicklinks.styling')}
|
||||
description={variables.getMessage(
|
||||
'modals.main.settings.sections.quicklinks.styling_description',
|
||||
)}
|
||||
>
|
||||
<Dropdown label="Style" name="quickLinksStyle" category="other">
|
||||
<option value="icon">
|
||||
{variables.getMessage('modals.main.settings.sections.quicklinks.options.icon')}
|
||||
@@ -227,7 +232,11 @@ export default class QuickLinks extends PureComponent {
|
||||
</Dropdown>
|
||||
</SettingsItem>
|
||||
|
||||
<SettingsItem title="Quick Links" subtitle="" final={true}>
|
||||
<SettingsItem
|
||||
title={variables.getMessage('modals.main.settings.sections.quicklinks.title')}
|
||||
subtitle=""
|
||||
final={true}
|
||||
>
|
||||
<button onClick={() => this.setState({ showAddModal: true })}>
|
||||
{variables.getMessage('modals.main.settings.sections.quicklinks.add_link')}{' '}
|
||||
<MdAddLink />
|
||||
|
||||
Reference in New Issue
Block a user