Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Add handling for hidden thing making item unavailable for lending
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonfagan committed Oct 18, 2023
1 parent 811ad33 commit 760b2ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ const checkedInIcon = Tooltip(
);

const checkedOutIcon = Tooltip(
message: 'Checked out',
message: 'Unavailable',
child: Icon(Icons.circle, color: Colors.amber, size: 16),
);
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class ThingSearchController {
builder: (context) {
return AlertDialog(
title: const Text("Thing Unavailable"),
content: Text("Thing #${thing.number} is checked out."),
content: Text(
"Thing #${thing.number} is checked out or not available for lending."),
actions: [
TextButton(
child: const Text("OK"),
Expand Down
3 changes: 2 additions & 1 deletion lib/src/features/loans/widgets/checkout/pick_things.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class _PickThingsViewState extends ConsumerState<PickThingsView> {
builder: (context) {
return AlertDialog(
title: const Text("Thing Unavailable"),
content: Text("Thing #${thing.number} is checked out."),
content: Text(
"Thing #${thing.number} is checked out or not available for lending."),
actions: [
TextButton(
child: const Text("OK"),
Expand Down

0 comments on commit 760b2ae

Please sign in to comment.