mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
leaving this here for notes etc
This commit is contained in:
parent
03c90d7b60
commit
72f58b0405
|
@ -441,10 +441,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function genericCheckinCheckoutFormatter(destination) {
|
function genericCheckinCheckoutFormatter(destination) {
|
||||||
|
console.log(destination)
|
||||||
return function (value,row) {
|
return function (value,row) {
|
||||||
|
console.log(value)
|
||||||
|
console.log(row.user_can_checkout)
|
||||||
// some extra logic for kits needs to go here
|
// some extra logic for kits needs to go here
|
||||||
|
|
||||||
// The user is allowed to check items out, AND the item is deployable
|
// The user is allowed to check items out, AND the item is deployable
|
||||||
|
row.available_actions.checkout = true //this is for testing -- TODO: REMOVE!!!!
|
||||||
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
||||||
|
|
||||||
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
||||||
|
|
Loading…
Reference in a new issue