Skip to content

A free open source IT asset/license management system

Add link to custom report to toolbar

Marcus Moore5b8f8405f8b1
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index bb416747fa..bb8a68fd1d 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -1017,7 +1017,7 @@
@endcan
@can('create', \App\Models\Component::class)
- // Compoment table buttons
+ // Component table buttons
window.componentButtons = () => ({
btnAdd: {
text: '{{ trans('general.create') }}',
@@ -1033,6 +1033,16 @@
@endif
}
},
+ btnExport: {
+ text: '{{ trans('general.custom_component_report') }}',
+ icon: 'fa-solid fa-file-csv',
+ event () {
+ window.location.href = '{{ route('reports.custom.component') }}';
+ },
+ attributes: {
+ title: '{{ trans('general.custom_component_report') }}',
+ }
+ },
});
@endcan