diff --git a/.vscode/settings.json b/.vscode/settings.json index deb4b49e1..2298e4846 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,5 +3,8 @@ // Carácter predeterminado de final de línea. "files.eol": "\n", "vsicons.presets.angular": false, - "eslint.autoFixOnSave": true + "eslint.autoFixOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + } } \ No newline at end of file diff --git a/front/core/components/autocomplete/index.js b/front/core/components/autocomplete/index.js index e2c9b7ad4..38c85db57 100755 --- a/front/core/components/autocomplete/index.js +++ b/front/core/components/autocomplete/index.js @@ -253,7 +253,7 @@ export default class Autocomplete extends Field { } showDropDown(search) { - if (this.readonly) return; + if (!this.editable) return; this.assignDropdownProps(); this.$.dropDown.show(this.container, search); } diff --git a/front/core/components/range/index.js b/front/core/components/range/index.js index 80410875a..88463e7cf 100644 --- a/front/core/components/range/index.js +++ b/front/core/components/range/index.js @@ -6,6 +6,16 @@ export default class Range extends FormInput { constructor($element, $scope) { super($element, $scope); this.input = this.element.querySelector('input'); + this.input.addEventListener('change', () => this.onValueUpdate()); + } + + get field() { + return super.field; + } + + set field(value) { + this.input.value = value; + super.field = value; } get max() { @@ -35,6 +45,11 @@ export default class Range extends FormInput { refreshTabIndex() { this.input.tabIndex = this.disabled ? -1 : this.tabIndex; } + + onValueUpdate() { + this.change(this.input.value); + this.$.$applyAsync(); + } } ngModule.vnComponent('vnRange', { diff --git a/modules/claim/front/index/index.html b/modules/claim/front/index/index.html index c85632571..383e55a9d 100644 --- a/modules/claim/front/index/index.html +++ b/modules/claim/front/index/index.html @@ -11,7 +11,7 @@ + class="vn-w-lg"> diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html index c5d954057..20dca702b 100644 --- a/modules/claim/front/summary/index.html +++ b/modules/claim/front/summary/index.html @@ -87,7 +87,7 @@
+ zoom-image="/api/dms/{{::photo.dmsFk}}/downloadFile?access_token={{::$ctrl.accessToken}}">
diff --git a/modules/item/front/diary/index.html b/modules/item/front/diary/index.html index 720a42fb7..f3c9ff63a 100644 --- a/modules/item/front/diary/index.html +++ b/modules/item/front/diary/index.html @@ -6,7 +6,7 @@ auto-load="false"> - + this.isEditable - }, - { + }, { name: 'Unmark as reserved', callback: this.unmarkAsReserved, show: () => this.isEditable - }, - { + }, { name: 'Update discount', callback: this.showEditDialog, show: () => this.isEditable - }, - { + }, { name: 'Add claim', - callback: this.createClaim, - show: () => this.isEditable - }, - { + callback: this.createClaim + }, { name: 'Recalculate price', callback: this.calculateSalePrice, show: () => this.hasOneSaleSelected() diff --git a/modules/travel/front/routes.json b/modules/travel/front/routes.json index 357ffffc2..d9b520816 100644 --- a/modules/travel/front/routes.json +++ b/modules/travel/front/routes.json @@ -24,8 +24,7 @@ "url": "/index?q", "state": "travel.index", "component": "vn-travel-index", - "description": "Travels", - "acl": ["developer"] + "description": "Travels" }, { "url": "/:id", "state": "travel.card", diff --git a/modules/worker/front/department/index.html b/modules/worker/front/department/index.html index e77d11e12..d50d33ace 100644 --- a/modules/worker/front/department/index.html +++ b/modules/worker/front/department/index.html @@ -16,9 +16,6 @@ {{::item.name}} - - -