This commit is contained in:
parent
62f4abf6ed
commit
0f5ebf42ec
|
@ -16,10 +16,8 @@
|
|||
}
|
||||
},
|
||||
"extension": {
|
||||
"type": "Number"
|
||||
},
|
||||
"secret": {
|
||||
"type": "String"
|
||||
"type": "String",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
|
|
|
@ -1341,12 +1341,12 @@ INSERT INTO `vn`.`zoneIncluded` (`zoneFk`, `geoFk`, `isIncluded`)
|
|||
(5, 4, 1),
|
||||
(5, 5, 1);
|
||||
|
||||
INSERT INTO `pbx`.`sip`(`user_id`, `extension`, `secret`, `caller_id`)
|
||||
INSERT INTO `pbx`.`sip`(`user_id`, `extension`)
|
||||
VALUES
|
||||
(1, 1010, '123456', 'employee'),
|
||||
(3, 1101, '123456', 'agency'),
|
||||
(5, 1102, '123456', 'administrative'),
|
||||
(9, 1201, '123456', 'developer');
|
||||
(1, 1010),
|
||||
(3, 1101),
|
||||
(5, 1102),
|
||||
(9, 1201);
|
||||
|
||||
INSERT INTO `postgresql`.`person`(`person_id`, `name`, `nickname`, `nif`, `firstname`, `id_trabajador`)
|
||||
SELECT w.id, w.lastName, u.nickname,CONCAT(RPAD(CONCAT(w.id,9),8,w.id),'A'),w.firstName,w.id
|
||||
|
|
|
@ -591,7 +591,6 @@ export default {
|
|||
},
|
||||
workerPbx: {
|
||||
extensionInput: 'vn-worker-pbx vn-input-number[model="$ctrl.worker.sip.extension"] input',
|
||||
passwordInput: 'vn-worker-pbx vn-textfield[model="$ctrl.worker.sip.secret"] input',
|
||||
saveButton: 'vn-worker-pbx vn-submit[label="Save"] input'
|
||||
},
|
||||
workerTimeControl: {
|
||||
|
|
|
@ -25,8 +25,6 @@ describe('Worker pbx path', () => {
|
|||
const result = await nightmare
|
||||
.clearInput(selectors.workerPbx.extensionInput)
|
||||
.write(selectors.workerPbx.extensionInput, 4444)
|
||||
.clearInput(selectors.workerPbx.passwordInput)
|
||||
.write(selectors.workerPbx.passwordInput, 666666)
|
||||
.waitToClick(selectors.workerPbx.saveButton)
|
||||
.waitForLastSnackbar();
|
||||
|
||||
|
|
|
@ -6,15 +6,11 @@
|
|||
<vn-card pad-large>
|
||||
<vn-vertical>
|
||||
<vn-horizontal>
|
||||
<vn-input-number vn-one min="1" step="1"
|
||||
<vn-textfield
|
||||
label="Extension"
|
||||
model="$ctrl.worker.sip.extension">
|
||||
</vn-input-number>
|
||||
<vn-textfield
|
||||
vn-one
|
||||
label="Password"
|
||||
model="$ctrl.worker.sip.secret">
|
||||
</vn-textfield>
|
||||
|
||||
</vn-horizontal>
|
||||
</vn-vertical>
|
||||
</vn-card>
|
||||
|
|
|
@ -10,8 +10,7 @@ class Controller {
|
|||
const sip = this.worker.sip;
|
||||
const params = {
|
||||
userFk: this.worker.userFk,
|
||||
extension: sip.extension,
|
||||
secret: sip.secret
|
||||
extension: sip.extension
|
||||
};
|
||||
this.$scope.watcher.check();
|
||||
this.$http.patch('/api/Sips', params).then(() => {
|
||||
|
|
Loading…
Reference in New Issue