79204384

Date: 2024-11-19 17:04:06
Score: 2
Natty:
Report link

@Update (Shopware 6.6.x)

const profileTypes = {
    IMPORT: 'import',
    EXPORT: 'export',
    IMPORT_EXPORT: 'import-export',
};

Shopware.Component.override('sw-import-export-edit-profile-general', {
    computed: {
        supportedEntities() {
            const supportedEntities = this.$super('supportedEntities');
            supportedEntities.push(
                {
                    value: 'your_entity',
                    label: "your_label",
                    type: profileTypes.IMPORT_EXPORT,
                }
            );
            
            return supportedEntities;
        }
    }
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Update
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Johannes Fischer