Fix Info panel - translations, two-step offers flow, icon, add to filter
All checks were successful
Build Docker Image / build (push) Successful in 3m36s
All checks were successful
Build Docker Image / build (push) Successful in 3m36s
- Add i18n translations for entities, tabs, and info sections (EN/RU) - Refactor offers tab to two-step flow (products → offers) for Hub/Supplier - Replace entity badge with circular icon in header - Fix "Add to filter" button with name fallback and proper cleanup - Update selectItem() to clear info param when adding to filter
This commit is contained in:
@@ -395,9 +395,11 @@ const onInfoClose = () => {
|
||||
const onInfoAddToFilter = () => {
|
||||
if (!infoId.value || !entity.value) return
|
||||
const { type, uuid } = infoId.value
|
||||
const name = entity.value.name
|
||||
// Fallback for name - offer entities might use productName
|
||||
const name = entity.value.name || entity.value.productName || uuid.slice(0, 8) + '...'
|
||||
selectItem(type, uuid, name)
|
||||
closeInfo()
|
||||
clearInfo()
|
||||
}
|
||||
|
||||
const onInfoOpenRelated = (type: 'hub' | 'supplier' | 'offer', uuid: string) => {
|
||||
|
||||
Reference in New Issue
Block a user