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
3 changed files with 10 additions and 3 deletions

View File

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

View File

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

View File

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