Skip to content

Commit

Permalink
some UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoder committed Feb 24, 2024
1 parent 5b15eb9 commit 8e11792
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 29 deletions.
26 changes: 13 additions & 13 deletions web/lora-package/extra-webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
output: {
path: path.join(__dirname, './dist/apps/sag-ps-iot-pkg-lora-package')
},
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/monaco-editor/min/vs', to: 'assets/monaco/min/vs' },
{ context: path.resolve('../../..'), from: '*.png', to: 'assets/img'}
],
}, {debug: true})
]
};
module.exports = {
output: {
path: path.join(__dirname, './dist/apps/sag-ps-iot-pkg-lora-package')
},
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/monaco-editor/min/vs', to: 'assets/monaco/min/vs' },
{ context: path.resolve('../..'), from: '*.png', to: 'assets/img' }
],
}, { debug: true })
]
};
1 change: 1 addition & 0 deletions web/lora-package/src/devices/devices.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export class DevicesComponent implements OnInit {
model: this.device.c8y_Hardware.model,
name: this.device.name,
type: this.device.type,
useGatewayPosition: this.device.useGatewayPosition,
},
this.selectedLnsConnectorId,
this.deviceProvisioningAdditionalProperties
Expand Down
16 changes: 0 additions & 16 deletions web/lora-package/src/onboarding/devices/devices.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,22 +322,6 @@ export class LoraDevicesComponent {
return result;
}

addDeviceFromForm() {
this.addDevice(
this.provisionDevice.deviceName,
this.provisionDevice.devEUI,
this.provisionDevice.appEUI,
this.provisionDevice.appKey,
this.provisionDevice.type,
this.provisionDevice.codec,
this.provisionDevice.model,
this.provisionDevice.instanceSelect,
this.provisionDevice.useGatewayPosition,
this.deviceProvisioningAdditionalProperties
);
}

// Add a managedObject (as device) to the database.
async addDevice(
name: string,
devEUI: string,
Expand Down

0 comments on commit 8e11792

Please sign in to comment.