fix: Not able to create a new category through the sidebar (#5421)
* fix: Not able to create a new category through the sidebar * chore: Minor spacing fixes
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
:show.sync="showAddCategoryModal"
|
:show.sync="showAddCategoryModal"
|
||||||
:portal-name="selectedPortalName"
|
:portal-name="selectedPortalName"
|
||||||
:locale="selectedPortalLocale"
|
:locale="selectedPortalLocale"
|
||||||
|
:portal-slug="selectedPortalSlug"
|
||||||
@cancel="onClickCloseAddCategoryModal"
|
@cancel="onClickCloseAddCategoryModal"
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -86,6 +86,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
portalSlug: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -105,7 +109,9 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
selectedPortalSlug() {
|
selectedPortalSlug() {
|
||||||
return this.$route.params.portalSlug;
|
return this.$route.params.portalSlug
|
||||||
|
? this.$route.params.portalSlug
|
||||||
|
: this.portalSlug;
|
||||||
},
|
},
|
||||||
nameError() {
|
nameError() {
|
||||||
if (this.$v.name.$error) {
|
if (this.$v.name.$error) {
|
||||||
|
|||||||
@@ -140,13 +140,13 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
background: var(--white);
|
background: var(--white);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 var(--space-medium);
|
padding: 0 0 0 var(--space-normal);
|
||||||
.button-container {
|
.button-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
.locale-container {
|
.locale-container {
|
||||||
margin-top: var(--space-large);
|
margin-top: var(--space-normal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user