Enhance usability and localization across components: Update USABILITY_CONCEPT.md with new focus areas, improve user feedback in AppFooter and FamilyView components, and refine text in various UI elements for better clarity and consistency. Replace console logs with user-friendly messages, correct German translations, and streamline interaction logic in multiple components.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<section class="workflow-grid">
|
||||
<article class="workflow-card surface-card">
|
||||
<span class="workflow-card__step">1</span>
|
||||
<h3>Level waehlen</h3>
|
||||
<h3>Level wählen</h3>
|
||||
<p>Bestehendes Level öffnen oder sofort mit einer neuen Vorlage starten.</p>
|
||||
</article>
|
||||
<article class="workflow-card surface-card">
|
||||
|
||||
@@ -276,11 +276,9 @@ export default {
|
||||
}
|
||||
},
|
||||
async loadStockTypes() {
|
||||
console.log('Loading stock types...');
|
||||
this.loading.stockTypes = true;
|
||||
try {
|
||||
const stockTypesResult = await apiClient.get('/api/admin/falukant/stock-types');
|
||||
console.log('Stock types loaded:', stockTypesResult.data);
|
||||
this.stockTypes = stockTypesResult.data;
|
||||
} catch (error) {
|
||||
console.error('Error loading stock types:', error);
|
||||
@@ -327,19 +325,13 @@ export default {
|
||||
}
|
||||
},
|
||||
canAddStock(branch) {
|
||||
console.log('canAddStock called for branch:', branch);
|
||||
console.log('stockTypes:', this.stockTypes);
|
||||
console.log('branch.stocks:', branch.stocks);
|
||||
|
||||
// Wenn keine Stock-Types geladen sind, zeige den Button nicht
|
||||
if (!this.stockTypes || this.stockTypes.length === 0) {
|
||||
console.log('No stock types loaded, returning false');
|
||||
return false;
|
||||
}
|
||||
|
||||
// Wenn keine Stocks vorhanden sind, kann immer hinzugefügt werden
|
||||
if (!branch.stocks || branch.stocks.length === 0) {
|
||||
console.log('No stocks in branch, returning true');
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -350,8 +342,6 @@ export default {
|
||||
const availableStockTypes = this.stockTypes.filter(stockType =>
|
||||
!existingStockTypeIds.includes(stockType.id)
|
||||
);
|
||||
|
||||
console.log('Available stock types:', availableStockTypes);
|
||||
return availableStockTypes.length > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user