Füge Spalte product_quality zur Tabelle stock hinzu und erstelle Migration für weather_type_id in production

This commit is contained in:
Torsten Schulz (local)
2025-12-16 13:00:29 +01:00
parent 43d86cce18
commit ee4b0ee7c2
11 changed files with 325 additions and 16 deletions

View File

@@ -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 } });

View File

@@ -27,7 +27,8 @@
"messages": {
"title": "Nachrichten",
"tooltip": "Nachrichten",
"empty": "Keine Nachrichten vorhanden."
"empty": "Keine Nachrichten vorhanden.",
"markAllRead": "Alle als gelesen markieren"
},
"notifications": {
"notify_election_created": "Es wurde eine neue Wahl ausgeschrieben.",
@@ -902,6 +903,8 @@
"office": "Amt",
"region": "Region",
"termEnds": "Läuft ab am",
"benefit": "Vorteil",
"benefit_all": "Alle Regionen",
"income": "Einkommen",
"none": "Keine aktuelle Position vorhanden.",
"holder": "Inhaber"

View File

@@ -13,7 +13,8 @@
"messages": {
"title": "Messages",
"tooltip": "Messages",
"empty": "No messages."
"empty": "No messages.",
"markAllRead": "Mark all as read"
},
"notifications": {
"notify_election_created": "A new election has been scheduled.",
@@ -211,6 +212,8 @@
"office": "Office",
"region": "Region",
"termEnds": "Term Ends",
"benefit": "Benefit",
"benefit_all": "All regions",
"income": "Income",
"none": "No current position available.",
"holder": "Holder"

View File

@@ -17,7 +17,8 @@
<tr>
<th>{{ $t('falukant.politics.current.office') }}</th>
<th>{{ $t('falukant.politics.current.region') }}</th>
<th>{{ $t('falukant.politics.current.holder') }}</th>
<th>{{ $t('falukant.politics.current.holder') }}</th>
<th>{{ $t('falukant.politics.current.benefit') }}</th>
<th>{{ $t('falukant.politics.current.termEnds') }}</th>
</tr>
</thead>
@@ -32,6 +33,13 @@
</span>
<span v-else></span>
</td>
<td>
<span v-if="pos.benefit && pos.benefit.length">
<span v-if="pos.benefit.includes('*')">{{ $t('falukant.politics.current.benefit_all') }}</span>
<span v-else>{{ pos.benefit.join(', ') }}</span>
</span>
<span v-else></span>
</td>
<td>
<span v-if="pos.termEnds">
{{ formatDate(pos.termEnds) }}