Skip to content

Commit 51d22e9

Browse files
committed
add label field
1 parent 545e6cb commit 51d22e9

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unoapi-cloud",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Unoapi Cloud",
55
"exports": "./dist/index.js",
66
"types": "./dist/index.d.ts",

public/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
<table id="sessionsTable" class="table table-striped table-bordered d-none" style="width: 100%;">
201201
<thead>
202202
<tr>
203+
<th>Identificação</th>
203204
<th>Número</th>
204205
<th>Status</th>
205206
<th>Server</th>
@@ -244,6 +245,10 @@ <h5 class="modal-title" id="editModalLabel">Editar/Adicionar Sessão</h5>
244245
<div class="modal-body">
245246
<form id="editForm">
246247
<div class="row edit-form-row">
248+
<div class="col-12 col-md-12 col-lg-6">
249+
<label for="label" class="form-label">Identificação</label>
250+
<input type="text" class="form-control" id="label" name="lavel" placeholder="Identificação">
251+
</div>
247252
<div class="col-12 col-md-12 col-lg-6">
248253
<label for="authToken" class="form-label">Auth Token</label>
249254
<input type="text" class="form-control" id="authToken" name="authToken" placeholder="Auth Token">
@@ -644,6 +649,7 @@ <h5 class="modal-title" id="connectModalLabel">Conectar Sessão</h5>
644649

645650
sessions.forEach(session => {
646651
table.row.add([
652+
session.label,
647653
session.display_phone_number,
648654
session.status,
649655
session.server,
@@ -789,6 +795,7 @@ <h5 class="modal-title" id="connectModalLabel">Conectar Sessão</h5>
789795

790796
if (token && number) {
791797
const sessionData = {
798+
label: $('#label').val(),
792799
authToken: $('#authToken').val(),
793800
wavoipToken: $('#wavoipToken').val(),
794801
rejectCalls: $('#rejectCalls').val(),

src/services/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export type Config = {
7777
useRedis: boolean
7878
useS3: boolean
7979
qrTimeoutMs: number
80+
label: string
8081
}
8182

8283
export const defaultConfig: Config = {
@@ -135,7 +136,8 @@ export const defaultConfig: Config = {
135136
wavoipToken: '',
136137
useRedis: false,
137138
useS3: false,
138-
qrTimeoutMs: 60000
139+
qrTimeoutMs: 60000,
140+
label: '',
139141
}
140142

141143
export interface getConfig {

0 commit comments

Comments
 (0)