From b5ef856d9e5981b0040be4c7cea93128d933b365 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 5 Apr 2025 17:24:06 +0100 Subject: [PATCH] Translate request cancel string Signed-off-by: snipe --- resources/lang/en-US/admin/hardware/message.php | 1 + resources/views/partials/bootstrap-table.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en-US/admin/hardware/message.php b/resources/lang/en-US/admin/hardware/message.php index 021afc9451..96e0084eeb 100644 --- a/resources/lang/en-US/admin/hardware/message.php +++ b/resources/lang/en-US/admin/hardware/message.php @@ -103,6 +103,7 @@ return [ 'error' => 'Request was not successful, please try again.', 'success' => 'Requested successfully submitted.', 'canceled' => 'Request successfully canceled.', + 'cancel' => 'Cancel this item request', ], ]; diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 5f0aad01d4..76656a0a2d 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -547,9 +547,9 @@ // This is only used by the requestable assets section function assetRequestActionsFormatter (row, value) { if (value.assigned_to_self == true){ - return ''; + return ''; } else if (value.available_actions.cancel == true) { - return '
@csrf
'; + return '
@csrf
'; } else if (value.available_actions.request == true) { return '
@csrf
'; }