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:
Sivin Varghese 2022-09-13 00:15:24 +05:30 committed by GitHub
parent 1ea289e8b7
commit 44f498be6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 3 deletions

View file

@ -39,6 +39,7 @@
:show.sync="showAddCategoryModal"
:portal-name="selectedPortalName"
:locale="selectedPortalLocale"
:portal-slug="selectedPortalSlug"
@cancel="onClickCloseAddCategoryModal"
/>
</section>

View file

@ -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) {

View file

@ -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>