shopware / development

MIT License
191 stars 170 forks source link

Documentation Change language in a create page buggy #113

Closed rammi22 closed 4 years ago

rammi22 commented 4 years ago

Using SW 6.2

From the documentation Switching content language in administration

... On a creation page there is nothing to reload. It is common to re-use the editing page for creation, but you have to make sure that you don't do it while creating. In this case, simply disable the component using this attribute:

<sw-page>
<template #language-switch>
<sw-language-switch :disabled="isCreateMode"></sw-language-switch>
</template>
</sw-page>

returned error

ReferenceError: isCreateMode is not defined

shyim commented 4 years ago

You can use the magic propery _isNew

rammi22 commented 4 years ago

You can use the magic propery _isNew

This must be included in the documentation The documentation remains buggy

shyim commented 4 years ago

https://issues.shopware.com/issues/NEXT-10351