You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "chouchouji (via GitHub)" <gi...@apache.org> on 2024/07/03 01:18:16 UTC
Re: [PR] [AMORO-2996] Reload catalogs page after removing the existing catalog [amoro]
chouchouji commented on code in PR #2998:
URL: https://github.com/apache/amoro/pull/2998#discussion_r1663355867
##########
amoro-ams/amoro-ams-dashboard/src/views/catalogs/Detail.vue:
##########
@@ -533,9 +535,15 @@ async function deleteCatalogModal() {
Modal.confirm({
title: t('deleteCatalogModalTitle'),
onOk: async () => {
- await delCatalog(formState.catalog.name || '')
- message.success(`${t('remove')} ${t('success')}`)
- emit('updateEdit', false)
+ try {
+ await delCatalog(formState.catalog.name || '')
+ message.success(`${t('remove')} ${t('success')}`, 1, () => {
+ router.replace({ path: '/catalogs', query: {} }).then(() => router.go(0))
Review Comment:
Is this operation to refresh the page?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@amoro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org