diff --git a/src/common/ClientConnection.ts b/src/common/ClientConnection.ts index c4046d0..a5b2991 100644 --- a/src/common/ClientConnection.ts +++ b/src/common/ClientConnection.ts @@ -302,6 +302,36 @@ export default class ClientConnection { } } + public async editSignalSourceGroup(uuid: string, name: string) { + try { + return await this.doRpc( + new Protocol.EditSignalSourcesGroupRequestEntity(0, uuid, name) + ); + } catch (e) { + console.error(e); + } + } + + public async deleteSignalSourceGroup(uuid: string) { + try { + return await this.doRpc( + new Protocol.DeleteSignalSourcesGroupRequestEntity(0, uuid) + ); + } catch (e) { + console.error(e); + } + } + + public async deleteSignalSource(uuid: string) { + try { + return await this.doRpc( + new Protocol.DeleteSignalSourcesGroupRequestEntity(0, uuid) + ); + } catch (e) { + console.error(e); + } + } + private _destoryed = false; public destory() { this._destoryed = true; diff --git a/src/components/GroupDialog.vue b/src/components/GroupDialog.vue index 0155137..cbbed7f 100644 --- a/src/components/GroupDialog.vue +++ b/src/components/GroupDialog.vue @@ -1,6 +1,6 @@