mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Also remove dashes from GUI entered node IDs
This commit is contained in:
parent
d7df11e724
commit
5c65e10875
File diff suppressed because one or more lines are too long
@ -317,7 +317,7 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
|
|||||||
$scope.configInSync = false;
|
$scope.configInSync = false;
|
||||||
$('#editNode').modal('hide');
|
$('#editNode').modal('hide');
|
||||||
nodeCfg = $scope.currentNode;
|
nodeCfg = $scope.currentNode;
|
||||||
nodeCfg.NodeID = nodeCfg.NodeID.replace(/ /g, '').trim();
|
nodeCfg.NodeID = nodeCfg.NodeID.replace(/ /g, '').replace(/-/g, '').trim();
|
||||||
nodeCfg.Addresses = nodeCfg.AddressesStr.split(',').map(function (x) { return x.trim(); });
|
nodeCfg.Addresses = nodeCfg.AddressesStr.split(',').map(function (x) { return x.trim(); });
|
||||||
|
|
||||||
done = false;
|
done = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user