Commit 91432678 authored by Marcel Nellesen's avatar Marcel Nellesen

Small changes (coscine/issues#1014)

parent 99060644
......@@ -215,13 +215,13 @@ export default Vue.extend({
};
},
watch: {
'$root.$i18n.locale'() {
'$i18n.locale'() {
this.retrieveNotices();
},
},
methods: {
retrieveNotices() {
NoticeApi.getNotices('changelog', this.$root.$i18n.locale, (response: any) => {
NoticeApi.getNotices('changelog', this.$i18n.locale, (response: any) => {
let splitArray = response.data.data.body.split(/\s(?:#{3})\s/g, 5);
splitArray = splitArray.join('### ');
this.news = splitArray.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment