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"
|
||||
: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>
|
||||
|
||||
Reference in New Issue
Block a user