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:
parent
1ea289e8b7
commit
44f498be6d
3 changed files with 10 additions and 3 deletions
|
@ -39,6 +39,7 @@
|
|||
:show.sync="showAddCategoryModal"
|
||||
:portal-name="selectedPortalName"
|
||||
:locale="selectedPortalLocale"
|
||||
:portal-slug="selectedPortalSlug"
|
||||
@cancel="onClickCloseAddCategoryModal"
|
||||
/>
|
||||
</section>
|
||||
|
|
|
@ -86,6 +86,10 @@ export default {
|
|||
type: String,
|
||||
default: '',
|
||||
},
|
||||
portalSlug: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -105,7 +109,9 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
selectedPortalSlug() {
|
||||
return this.$route.params.portalSlug;
|
||||
return this.$route.params.portalSlug
|
||||
? this.$route.params.portalSlug
|
||||
: this.portalSlug;
|
||||
},
|
||||
nameError() {
|
||||
if (this.$v.name.$error) {
|
||||
|
|
|
@ -140,13 +140,13 @@ export default {
|
|||
width: 100%;
|
||||
background: var(--white);
|
||||
height: 100%;
|
||||
padding: 0 var(--space-medium);
|
||||
padding: 0 0 0 var(--space-normal);
|
||||
.button-container {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.locale-container {
|
||||
margin-top: var(--space-large);
|
||||
margin-top: var(--space-normal);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue