Merge pull request #804 from ruwany/master

fixing https://github.com/wso2/product-iots/issues/1326
revert-dabc3590
Milan Perera 7 years ago committed by GitHub
commit 624bf86a98

@ -29,7 +29,7 @@
</div>
<div class="wr-input-control wr-btn-grp">
<button id="save-general-btn" class="wr-btn" onclick="artifactUpload();">
<button id="save-general-btn" class="wr-btn" onclick="arduinoArtifactUpload();">
Deploy Analytics Artifacts
</button>
</div>

@ -104,7 +104,7 @@ var addConfiguration = function () {
);
};
var artifactUpload = function () {
var arduinoArtifactUpload = function () {
var contentType = "application/json";
var backendEndBasePath = "/api/device-mgt/v1.0";
var urix = backendEndBasePath + "/admin/publish-artifact/deploy/arduino";

@ -28,7 +28,7 @@
<i class="icon fw fw-error"></i><span></span>
</div>
<div class="wr-input-control wr-btn-grp">
<button id="save-general-btn" class="wr-btn" onclick="artifactUpload();">
<button id="save-general-btn" class="wr-btn" onclick="raspberryArtifactUpload();">
Deploy Analytics Artifacts
</button>

@ -114,7 +114,7 @@ var addConfiguration = function () {
);
};
var artifactUpload = function () {
var raspberryArtifactUpload = function () {
var contentType = "application/json";
var backendEndBasePath = "/api/device-mgt/v1.0";
var urix = backendEndBasePath + "/admin/publish-artifact/deploy/raspberrypi";

@ -29,7 +29,7 @@
<i class="icon fw fw-error"></i><span></span>
</div>
<div class="wr-input-control wr-btn-grp">
<button id="save-general-btn" class="wr-btn" onclick="artifactUpload();">
<button id="save-general-btn" class="wr-btn" onclick="virtualfirealarmArtifactUpload();">
Deploy Analytics Artifacts
</button>

@ -104,7 +104,7 @@ var addConfiguration = function () {
);
};
var artifactUpload = function () {
var virtualfirealarmArtifactUpload = function () {
var contentType = "application/json";
var backendEndBasePath = "/api/device-mgt/v1.0";
var urix = backendEndBasePath + "/admin/publish-artifact/deploy/virtual_firealarm";

Loading…
Cancel
Save