Füge Spalte product_quality zur Tabelle stock hinzu und erstelle Migration für weather_type_id in production
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
:title="'falukant.messages.title'"
|
||||
:isTitleTranslated="true"
|
||||
icon="falukant/messages24.png"
|
||||
:buttons="[{ text: 'message.close', action: 'close' }]"
|
||||
:buttons="[
|
||||
{ text: 'falukant.messages.markAllRead', action: 'markAll' },
|
||||
{ text: 'message.close', action: 'close' }
|
||||
]"
|
||||
width="520px"
|
||||
height="420px"
|
||||
>
|
||||
@@ -59,6 +62,15 @@ export default {
|
||||
// mark unread as shown
|
||||
try { await apiClient.post('/api/falukant/notifications/mark-shown'); } catch {}
|
||||
},
|
||||
async markAll() {
|
||||
try {
|
||||
await apiClient.post('/api/falukant/notifications/mark-shown');
|
||||
// reload to update shown flags and unread count
|
||||
await this.load();
|
||||
} catch (e) {
|
||||
// ignore errors silently
|
||||
}
|
||||
},
|
||||
async load() {
|
||||
try {
|
||||
const { data } = await apiClient.get('/api/falukant/notifications/all', { params: { page: this.page, size: this.size } });
|
||||
|
||||
Reference in New Issue
Block a user