未验证 提交 62860f87 编写于 作者: S sercan

#480 connection tests implemented

上级 11ac41de
......@@ -367,13 +367,13 @@ Connection.prototype = {
let currentConnection = {};
if (oldCollectionId) currentConnection = ReactivityProvider.findOne(ReactivityProvider.types.Connections, { _id: oldCollectionId });
ConnectionHelper.populateConnection(currentConnection, (connection) => {
if (modal.data('edit')) connection._id = currentConnection._id;
if (modal.data('edit')) connection._id = currentConnection._id; // keep _id if only it's an edit.
Communicator.call({
methodName: 'checkAndSaveConnection',
args: { connection },
callback: (err) => {
if (err) ErrorHandler.showMeteorFuncError(err, null);
if (err) ErrorHandler.showMeteorFuncError(err);
else {
Notification.success('saved-successfully');
this.populateConnectionsTable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册