diff --git a/package.json b/package.json index dc781c0f..bb6fe42e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "Julien Martin" ], "license": "MIT", - "version": "1.64.0", + "version": "1.66.0", "main": "lib/vac.common.js", "module": "src/index.js", "files": [ diff --git a/src/components/crud/AwesomeCrud.vue b/src/components/crud/AwesomeCrud.vue index 7c51f5dc..55b7db0f 100644 --- a/src/components/crud/AwesomeCrud.vue +++ b/src/components/crud/AwesomeCrud.vue @@ -22,8 +22,8 @@ diff --git a/src/components/misc/AwesomeAction/AwesomeAction.vue b/src/components/misc/AwesomeAction/AwesomeAction.vue index 25f2b9d9..e55c325e 100644 --- a/src/components/misc/AwesomeAction/AwesomeAction.vue +++ b/src/components/misc/AwesomeAction/AwesomeAction.vue @@ -227,7 +227,7 @@ export default { isDropdownOpened: false }), computed: { - actionDropdownTitleComputed() { + actionDropdownTitleComputed () { if (this.label) { return this.$te(this.label) ? this.$t(this.label) : this.label; } @@ -239,15 +239,15 @@ export default { }, watch: {}, methods: { - permanentFiltering(parsedFilters, filters) { + permanentFiltering (parsedFilters, filters) { this.$emit('permanent-filtering', parsedFilters, filters); }, - permanentSearching(parsedFilters) { + permanentSearching (parsedFilters) { this.$emit('permanent-searching', parsedFilters); }, - computeActionField(field) { + computeActionField (field) { if (field !== undefined) { if (typeof field === 'function') { return field({ item: this.item, items: this.items, parent: this.parent }, this); @@ -260,7 +260,7 @@ export default { return ''; }, - toggleDropdown(value) { + toggleDropdown (value) { if (value !== undefined) { this.isDropdownOpened = value; } else { @@ -268,7 +268,7 @@ export default { } } }, - mounted() { + mounted () { if ((this.type === 'filter' || this.type === 'input') && !this.field) { console.warn('[AwesomeAction]', 'You forget to set `field` for this type:', this.type); } diff --git a/src/components/misc/AwesomeAction/AwesomeActionList.vue b/src/components/misc/AwesomeAction/AwesomeActionList.vue index 46d73964..68a273a5 100644 --- a/src/components/misc/AwesomeAction/AwesomeActionList.vue +++ b/src/components/misc/AwesomeAction/AwesomeActionList.vue @@ -131,21 +131,21 @@ export default { } }, computed: { - foldableActions() { + foldableActions () { return this.actions.filter((a) => !a.type || (a.type === 'button' && !a.sticky)); }, - unFoldableActions() { + unFoldableActions () { return this.actions.filter((a) => (a.type && a.type !== 'button') || a.sticky); } }, - data() { + data () { return { state: {} }; }, methods: { - shouldDisplayAction(action) { + shouldDisplayAction (action) { this.mode = this.parentDisplayMode; // legacy, use visible if (action.canDisplay !== undefined) { @@ -156,7 +156,7 @@ export default { } return true; }, - computeActionField(action, field) { + computeActionField (action, field) { if (action[field] !== undefined) { if (typeof action[field] === 'function') { return action[field]({ item: this.item, items: this.items, parent: this.parent }, this); diff --git a/src/components/misc/KanbanList.vue b/src/components/misc/KanbanList.vue index 162f3b63..2a71edb4 100644 --- a/src/components/misc/KanbanList.vue +++ b/src/components/misc/KanbanList.vue @@ -52,6 +52,9 @@
+
+ {{ $t('AwesomeKanban.labels.add') }} +
@@ -129,14 +129,16 @@ >