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 d593454f06..87fea8bf34 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, })