mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-13 07:47:05 +08:00
Merge pull request #170 from dbeaver/fix/dialogs-error
fix(core-connections): moved connection errors from form to snackbar
This commit is contained in:
+2
-2
@@ -87,7 +87,7 @@ implements IInitializableController, IDestructibleController {
|
||||
this.notificationService.logInfo({ title: `Connection ${connection.name} created` });
|
||||
}
|
||||
} catch (exception) {
|
||||
this.showError(exception, 'Failed to create connection');
|
||||
this.notificationService.logException(exception, 'connections_connection_create_fail');
|
||||
} finally {
|
||||
this.isSaving = false;
|
||||
}
|
||||
@@ -100,7 +100,7 @@ implements IInitializableController, IDestructibleController {
|
||||
await this.connectionsResource.test(this.getConnectionConfig());
|
||||
this.notificationService.logInfo({ title: 'Connection is established' });
|
||||
} catch (exception) {
|
||||
this.showError(exception, 'Connection test failed');
|
||||
this.notificationService.logException(exception, 'connections_connection_test_fail');
|
||||
} finally {
|
||||
this.isSaving = false;
|
||||
}
|
||||
|
||||
@@ -22,5 +22,8 @@ export default [
|
||||
['connections_connection_port', 'Port'],
|
||||
['connections_connection_template', 'Template'],
|
||||
['connections_connection_test', 'Test Connection'],
|
||||
['connections_connection_test_fail', 'Connection test failed'],
|
||||
['connections_connection_create_fail', 'Failed to create connection'],
|
||||
['connections_connection_save_fail', 'Failed to save connection'],
|
||||
['connections_driver_search_placeholder', 'Type driver name...'],
|
||||
];
|
||||
|
||||
@@ -21,5 +21,8 @@ export default [
|
||||
['connections_connection_port', 'Порт'],
|
||||
['connections_connection_template', 'Шаблон'],
|
||||
['connections_connection_test', 'Проверить подключение'],
|
||||
['connections_connection_test_fail', 'Не удалось выполнить тестовое подключение'],
|
||||
['connections_connection_create_fail', 'Не удалось создать подключение'],
|
||||
['connections_connection_save_fail', 'Не удалось сохранить подключение'],
|
||||
['connections_driver_search_placeholder', 'Введите название драйвера...'],
|
||||
];
|
||||
|
||||
+2
-2
@@ -79,7 +79,7 @@ implements IInitializableController, IDestructibleController {
|
||||
|
||||
this.notificationService.logInfo({ title: 'Connection is established' });
|
||||
} catch (exception) {
|
||||
this.showError(exception, 'Connection test failed');
|
||||
this.notificationService.logException(exception, 'connections_connection_test_fail');
|
||||
} finally {
|
||||
this.isConnecting = false;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ implements IInitializableController, IDestructibleController {
|
||||
this.notificationService.logInfo({ title: `Connection ${connection.name} created` });
|
||||
this.onClose();
|
||||
} catch (exception) {
|
||||
this.showError(exception, 'Failed to create connection');
|
||||
this.notificationService.logException(exception, 'connections_connection_create_fail');
|
||||
} finally {
|
||||
this.isConnecting = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user