Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2303-fix_descriptor_show
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
commit
6db9f71867
|
@ -13,7 +13,7 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="icons pre">
|
<div class="icons pre">
|
||||||
<vn-icon
|
<vn-icon ng-show="::$ctrl.clearDisabled != true"
|
||||||
icon="clear"
|
icon="clear"
|
||||||
translate-attr="{title: 'Clear'}"
|
translate-attr="{title: 'Clear'}"
|
||||||
ng-click="$ctrl.onClear($event)">
|
ng-click="$ctrl.onClear($event)">
|
||||||
|
|
|
@ -203,6 +203,7 @@ ngModule.vnComponent('vnField', {
|
||||||
type: '@?',
|
type: '@?',
|
||||||
autocomplete: '@?',
|
autocomplete: '@?',
|
||||||
placeholder: '@?',
|
placeholder: '@?',
|
||||||
|
clearDisabled: '<?',
|
||||||
value: '=?',
|
value: '=?',
|
||||||
info: '@?',
|
info: '@?',
|
||||||
required: '<?',
|
required: '<?',
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
describe('Component vnField', () => {
|
||||||
|
let $element;
|
||||||
|
let controller;
|
||||||
|
|
||||||
|
beforeEach(ngModule('vnCore'));
|
||||||
|
|
||||||
|
beforeEach(inject(($compile, $rootScope) => {
|
||||||
|
$element = $compile(`<vn-textfield></vn-textfield>`)($rootScope);
|
||||||
|
controller = $element.controller('vnTextfield');
|
||||||
|
}));
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
$element.remove();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Remove this block
|
||||||
|
describe('clearDisabled binding', () => {
|
||||||
|
it(`should enable the show property`, () => {
|
||||||
|
controller.clearDisabled = true;
|
||||||
|
|
||||||
|
expect(controller.clearDisabled).toEqual(true);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
|
@ -1,5 +1,6 @@
|
||||||
import ngModule from '../../module';
|
import ngModule from '../../module';
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
|
import './style.scss';
|
||||||
|
|
||||||
export default class Textarea extends Field {
|
export default class Textarea extends Field {
|
||||||
constructor($element, $scope, $compile) {
|
constructor($element, $scope, $compile) {
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
.vn-textarea {
|
||||||
|
& > .container {
|
||||||
|
& > .icons {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -259,6 +259,10 @@ module.exports = function(Self) {
|
||||||
removeUnloggable(definition, oldInstance);
|
removeUnloggable(definition, oldInstance);
|
||||||
removeUnloggable(definition, newInstance);
|
removeUnloggable(definition, newInstance);
|
||||||
|
|
||||||
|
// Prevent log with no new changes
|
||||||
|
const hasNewChanges = Object.keys(newInstance).length;
|
||||||
|
if (!hasNewChanges) return;
|
||||||
|
|
||||||
let logRecord = {
|
let logRecord = {
|
||||||
originFk: originId,
|
originFk: originId,
|
||||||
userFk: userFk,
|
userFk: userFk,
|
||||||
|
|
|
@ -72,9 +72,10 @@ class Email extends Component {
|
||||||
await getAttachments(this.path, this.attachments);
|
await getAttachments(this.path, this.attachments);
|
||||||
|
|
||||||
const localeSubject = await this.getSubject();
|
const localeSubject = await this.getSubject();
|
||||||
|
const replyTo = this.args.replyTo || this.args.auth.email;
|
||||||
const options = {
|
const options = {
|
||||||
to: this.args.recipient,
|
to: this.args.recipient,
|
||||||
replyTo: this.args.auth.email,
|
replyTo: replyTo,
|
||||||
subject: localeSubject,
|
subject: localeSubject,
|
||||||
html: rendered,
|
html: rendered,
|
||||||
attachments: attachments
|
attachments: attachments
|
||||||
|
|
|
@ -58,7 +58,8 @@ module.exports = app => {
|
||||||
const args = Object.assign({
|
const args = Object.assign({
|
||||||
ticketId: ticket.id,
|
ticketId: ticket.id,
|
||||||
recipientId: ticket.clientFk,
|
recipientId: ticket.clientFk,
|
||||||
recipient: ticket.recipient
|
recipient: ticket.recipient,
|
||||||
|
replyTo: ticket.salesPersonEmail
|
||||||
}, reqArgs);
|
}, reqArgs);
|
||||||
|
|
||||||
const email = new Email('delivery-note-link', args);
|
const email = new Email('delivery-note-link', args);
|
||||||
|
|
Loading…
Reference in New Issue