Add fix for portal update issue (#5381)

This commit is contained in:
Muhsin Keloth
2022-09-02 12:32:07 +05:30
committed by GitHub
parent 403ff1a679
commit b16c5de7ca
5 changed files with 7 additions and 11 deletions

View File

@@ -109,10 +109,6 @@ export default {
page_title: this.pageTitle,
header_text: this.headerText,
homepage_link: this.homePageLink,
config: {
// TODO: add support for choosing locale
allowed_locales: ['en'],
},
};
this.$emit('submit', portal);
},

View File

@@ -48,7 +48,7 @@ export default {
try {
const portalSlug = this.lastPortalSlug;
await this.$store.dispatch('portals/update', {
portalObj,
...portalObj,
portalSlug,
});
this.alertMessage = this.$t(

View File

@@ -36,11 +36,11 @@ export default {
},
},
methods: {
async updatePortalSettings(portal) {
async updatePortalSettings(portalObj) {
const portalSlug = this.$route.params.portalSlug;
try {
await this.$store.dispatch('portals/update', {
portalObj: portal,
...portalObj,
portalSlug,
});
this.alertMessage = this.$t(

View File

@@ -50,13 +50,13 @@ export default {
fetchPortals() {
this.$store.dispatch('portals/index');
},
async updatePortalSettings(portal) {
async updatePortalSettings(portalObj) {
const portalSlug = this.$route.params.portalSlug;
try {
await this.$store.dispatch('portals/update', {
portalSlug,
portalObj: portal,
...portalObj,
});
this.alertMessage = this.$t(
'HELP_CENTER.PORTAL.ADD.API.SUCCESS_MESSAGE_FOR_UPDATE'