diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/BluetoothService.vue b/platypush/backend/http/webapp/src/components/panels/Entities/BluetoothService.vue index d593454f0..87fea8bf3 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/BluetoothService.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/BluetoothService.vue @@ -14,7 +14,7 @@
@@ -37,9 +37,13 @@ export default { async connect(event) { event.stopPropagation() this.$emit('loading', true) + const method = ( + 'bluetooth.' + + (this.value.connected ? 'disconnect' : 'connect') + ) try { - await this.request('bluetooth.connect', { + await this.request(method, { device: this.parent.address, service_uuid: this.uuid, })