fix #496 edit directly when connection is closed

This commit is contained in:
qishibo 2021-03-25 21:59:40 +08:00
parent 01f2539891
commit d5a74a3f61

View File

@ -85,6 +85,11 @@ export default {
this.$emit('refreshConnection');
},
showEditConnection() {
// connection is cloesd, do not display confirm
if (!this.client) {
return this.$refs.editConnectionDialog.show();
}
this.$confirm(
this.$t('message.close_to_edit_connection'),
{ type: 'warning' },