Skip to content

A free open source IT asset/license management system

Added OAuth table button - I don’t know if this really works properly?

snipeaff375c799b6
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 39bc15a5db..67ceec72cc 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -307,6 +307,28 @@
}); // end user table buttons
+ // Oauth table buttons
+ window.oauthButtons = () => ({
+
+ btnAdd: {
+ text: '{{ (request()->input('status') == "deleted") ? trans('admin/users/table.show_current') : trans('admin/users/table.show_deleted') }}',
+ icon: 'fa fa-plus',
+ attributes: {
+ event() {
+ wire:click = "$dispatch('openModal')"
+ onclick = "$('#modal-create-client').modal('show');"
+ },
+
+ title: '{{ trans('general.create') }}',
+ class: 'btn-warning',
+ @if ($snipeSettings->shortcuts_enabled == 1)
+ accesskey: 'n'
+ @endif
+ },
+ },
+
+ }); // end user table buttons
+
@can('create', \App\Models\Company::class)
// Company table buttons