feat: Create portal UI improvements (#5261)

This commit is contained in:
Muhsin Keloth
2022-08-18 17:11:19 +05:30
committed by GitHub
parent ea918d9c5a
commit a788e7ac7a
20 changed files with 629 additions and 57 deletions

View File

@@ -49,12 +49,13 @@ export const actions = {
update: async ({ commit }, params) => {
const portalId = params.id;
const portalSlug = params.slug;
commit(types.SET_HELP_PORTAL_UI_FLAG, {
uiFlags: { isUpdating: true },
portalId,
});
try {
const { data } = await portalAPIs.update(params);
const { data } = await portalAPIs.updatePortal({ portalSlug, params });
commit(types.UPDATE_PORTAL_ENTRY, data);
} catch (error) {
throwErrorMessage(error);