Tarea #1506 worker.pbx quitar campo password
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Javi Gallego 2019-06-04 12:54:41 +02:00
parent 62f4abf6ed
commit 0f5ebf42ec
6 changed files with 10 additions and 20 deletions

View File

@ -16,10 +16,8 @@
}
},
"extension": {
"type": "Number"
},
"secret": {
"type": "String"
"type": "String",
"required": true
}
},
"relations": {

View File

@ -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

View File

@ -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: {

View File

@ -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();

View File

@ -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>

View File

@ -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(() => {