diff --git a/resources/js/app/app.js b/resources/js/app/app.js index 2425829aa..ab4834766 100644 --- a/resources/js/app/app.js +++ b/resources/js/app/app.js @@ -117,7 +117,6 @@ const _vueInstance = new Vue({ FieldString: () => import(/* webpackChunkName: "field-string" */'app/components/form/field-string'), FieldTextarea: () => import(/* webpackChunkName: "field-textarea" */'app/components/form/field-textarea'), FieldTitle: () => import(/* webpackChunkName: "field-title" */'app/components/form/field-title'), - BulkActionsBar: () => import(/* webpackChunkName: "bulk-actions-bar" */'app/components/bulk-actions-bar/bulk-actions-bar'), CalendarView: () => import(/* webpackChunkName: "calendar-view" */'app/components/calendar-view/calendar-view'), ComponentsPlayground: () => import(/* webpackChunkName: "components-playground" */'app/components/components-playground'), ObjectInfo: () => import(/* webpackChunkName: "object-info" */'app/components/object-info/object-info'), @@ -635,7 +634,6 @@ window._vueInstance = _vueInstance; // use component everywhere in Manager Vue.component('AppIcon', AppIcon); -Vue.component('BulkActionsBar', _vueInstance.$options.components.BulkActionsBar); Vue.component('CalendarView', _vueInstance.$options.components.CalendarView); Vue.component('ClipboardItem', _vueInstance.$options.components.ClipboardItem); Vue.component('DateRangesView', _vueInstance.$options.components.DateRangesView); diff --git a/resources/js/app/components/bulk-actions-bar/bulk-actions-bar.vue b/resources/js/app/components/bulk-actions-bar/bulk-actions-bar.vue deleted file mode 100644 index 3e9fdd6cc..000000000 --- a/resources/js/app/components/bulk-actions-bar/bulk-actions-bar.vue +++ /dev/null @@ -1,412 +0,0 @@ - - - diff --git a/resources/js/app/pages/modules/index.js b/resources/js/app/pages/modules/index.js index 3f3335add..961c1ef19 100644 --- a/resources/js/app/pages/modules/index.js +++ b/resources/js/app/pages/modules/index.js @@ -151,29 +151,6 @@ export default { document.querySelector(`form#${formId}`).submit(); }, - submitBulkStatus({ status, event }) { - if (!['on', 'off', 'draft'].includes(status) || !document.getElementById('bulk-status')) { - return; - } - this.bulkValue = status; - this.$nextTick(() => this.bulkActions(event, 'bulk-status')); - }, - - submitPosition({ action, folderId }) { - if (!['copy', 'move'].includes(action) || !folderId) { - return; - } - const form = document.getElementById('bulk-folder'); - const actionInput = form?.querySelector(`input[name="action"][value="${action}"]`); - const folderInput = form?.querySelector('input[name="folderSelected"]'); - if (!form || !actionInput || !folderInput || !this.selectedRows.length) { - return; - } - actionInput.checked = true; - folderInput.value = folderId; - form.submit(); - }, - /** * Submit bulk export form * diff --git a/templates/Element/Modules/index_table_header.twig b/templates/Element/Modules/index_table_header.twig index 597260021..b34938242 100644 --- a/templates/Element/Modules/index_table_header.twig +++ b/templates/Element/Modules/index_table_header.twig @@ -1,5 +1,7 @@