mirror of
https://github.com/mue/mue.git
synced 2026-07-24 17:27:17 +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,
|
||||
|
||||
Reference in New Issue
Block a user