mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 00:10:20 +00:00
fixed uniqueid on copy
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<groupId>com.bwssystems.HABridge</groupId>
|
<groupId>com.bwssystems.HABridge</groupId>
|
||||||
<artifactId>ha-bridge</artifactId>
|
<artifactId>ha-bridge</artifactId>
|
||||||
<version>4.2.0a</version>
|
<version>4.2.0b</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>HA Bridge</name>
|
<name>HA Bridge</name>
|
||||||
|
|||||||
@@ -2447,8 +2447,11 @@ app.controller('EditController', function ($scope, $location, $http, bridgeServi
|
|||||||
bridgeService.displayWarn("Error adding device. Name has not been changed from original.", null);
|
bridgeService.displayWarn("Error adding device. Name has not been changed from original.", null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (copy)
|
if (copy) {
|
||||||
$scope.device.id = null;
|
$scope.device.id = null;
|
||||||
|
$scope.device.uniqueid = null;
|
||||||
|
$scope.device.mapId = $scope.device.mapId + "-copy";
|
||||||
|
}
|
||||||
if($scope.mapTypeSelected !== undefined && $scope.mapTypeSelected !== null)
|
if($scope.mapTypeSelected !== undefined && $scope.mapTypeSelected !== null)
|
||||||
$scope.device.mapType = $scope.mapTypeSelected[0];
|
$scope.device.mapType = $scope.mapTypeSelected[0];
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user