Merge branch 'dev' into 2035-el-parametro-vShowExpiredZones
This commit is contained in:
commit
428cdc5707
|
@ -13,7 +13,7 @@
|
|||
</label>
|
||||
</div>
|
||||
<div class="icons pre">
|
||||
<vn-icon
|
||||
<vn-icon ng-show="::$ctrl.clearDisabled != true"
|
||||
icon="clear"
|
||||
translate-attr="{title: 'Clear'}"
|
||||
ng-click="$ctrl.onClear($event)">
|
||||
|
|
|
@ -203,6 +203,7 @@ ngModule.vnComponent('vnField', {
|
|||
type: '@?',
|
||||
autocomplete: '@?',
|
||||
placeholder: '@?',
|
||||
clearDisabled: '<?',
|
||||
value: '=?',
|
||||
info: '@?',
|
||||
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 Field from '../field';
|
||||
import './style.scss';
|
||||
|
||||
export default class Textarea extends Field {
|
||||
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, newInstance);
|
||||
|
||||
// Prevent log with no new changes
|
||||
const hasNewChanges = Object.keys(newInstance).length;
|
||||
if (!hasNewChanges) return;
|
||||
|
||||
let logRecord = {
|
||||
originFk: originId,
|
||||
userFk: userFk,
|
||||
|
|
|
@ -72,9 +72,10 @@ class Email extends Component {
|
|||
await getAttachments(this.path, this.attachments);
|
||||
|
||||
const localeSubject = await this.getSubject();
|
||||
const replyTo = this.args.replyTo || this.args.auth.email;
|
||||
const options = {
|
||||
to: this.args.recipient,
|
||||
replyTo: this.args.auth.email,
|
||||
replyTo: replyTo,
|
||||
subject: localeSubject,
|
||||
html: rendered,
|
||||
attachments: attachments
|
||||
|
|
|
@ -58,7 +58,8 @@ module.exports = app => {
|
|||
const args = Object.assign({
|
||||
ticketId: ticket.id,
|
||||
recipientId: ticket.clientFk,
|
||||
recipient: ticket.recipient
|
||||
recipient: ticket.recipient,
|
||||
replyTo: ticket.salesPersonEmail
|
||||
}, reqArgs);
|
||||
|
||||
const email = new Email('delivery-note-link', args);
|
||||
|
|
Loading…
Reference in New Issue