Merge branch 'test' of https://gitea.verdnatura.es/verdnatura/salix into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
94ebb7fbd2
|
@ -24,14 +24,15 @@ export default class Controller extends Component {
|
|||
const filter = encodeURIComponent(JSON.stringify(filterObj));
|
||||
const query = `Clients/findOne?filter=${filter}`;
|
||||
this.$http.get(query).then(res => {
|
||||
if (res.data.id) {
|
||||
const params = {clientId: res.data.id};
|
||||
const question = $t('Found a client with this phone or email', params, null, null, 'sanitizeParameters');
|
||||
const params = {clientId: res.data.id};
|
||||
const question = $t('Found a client with this phone or email', params, null, null, 'sanitizeParameters');
|
||||
|
||||
this.client.despiteOfClient = params.clientId;
|
||||
this.$.confirmDuplicatedClient.question = question;
|
||||
this.$.confirmDuplicatedClient.show();
|
||||
}
|
||||
this.client.despiteOfClient = params.clientId;
|
||||
this.$.confirmDuplicatedClient.question = question;
|
||||
this.$.confirmDuplicatedClient.show();
|
||||
}).catch(error => {
|
||||
if (error.status == 404)
|
||||
this.save();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue