mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-15 11:40:38 +08:00
feat: add delete key dialog and logic
refactor: tidy function of connection store
This commit is contained in:
@@ -191,7 +191,7 @@ const openConnection = async (name) => {
|
||||
const dialog = useDialog()
|
||||
const removeConnection = (name) => {
|
||||
confirmDialog.warning(i18n.t('remove_tip', { type: i18n.t('conn_name'), name }), async () => {
|
||||
connectionStore.removeConnection(name).then(({ success, msg }) => {
|
||||
connectionStore.deleteConnection(name).then(({ success, msg }) => {
|
||||
if (!success) {
|
||||
message.error(msg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user