Closed rammi22 closed 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
... 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
You can use the magic propery _isNew
_isNew
This must be included in the documentation The documentation remains buggy
https://issues.shopware.com/issues/NEXT-10351
Using SW 6.2
From the documentation Switching content language in administration