1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Add owners to groups.

This commit is contained in:
Simo Kinnunen 2014-02-04 20:33:53 +09:00
parent 3e7d91cb91
commit 37303c5d92
8 changed files with 98 additions and 70 deletions

View file

@ -51,6 +51,16 @@ define(['./module', 'oboe'], function(mod, oboe) {
modify(get(data), data)
})
socket.on('group.join', function(data) {
modify(get(data), data)
})
socket.on('group.leave', function(data) {
modify(get(data), {
owner: null
})
})
oboe('/api/v1/devices')
.node('devices[*]', function(device) {
// We want to skip other arguments