fix: continuing error managment and documentation
This commit is contained in:
parent
59e1c2558c
commit
dad000a1b9
24 changed files with 389 additions and 182 deletions
|
|
@ -45,7 +45,7 @@ class _AddPageState extends State<AddPage> {
|
|||
listenable: widget.viewModel,
|
||||
builder: (context, child) => switch (widget.viewModel.isLoaded) {
|
||||
false => AwaitLoading(),
|
||||
true => switch (widget.viewModel.currentBal) {
|
||||
true => switch (widget.viewModel.ongoingBal) {
|
||||
null => Center(
|
||||
child: SizedBox(
|
||||
width: 300,
|
||||
|
|
|
|||
|
|
@ -123,10 +123,10 @@ class _ConfirmationPopupState extends State<ConfirmationPopup> {
|
|||
_formKey.currentState!.save();
|
||||
}
|
||||
|
||||
var result = await widget.viewModel.sendBook(
|
||||
var result = await widget.viewModel.sendNewBookInstance(
|
||||
widget.book,
|
||||
widget.viewModel.currentOwner!,
|
||||
widget.viewModel.currentBal!,
|
||||
widget.viewModel.ongoingBal!,
|
||||
price,
|
||||
);
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ class _ConfirmationPopupState extends State<ConfirmationPopup> {
|
|||
),
|
||||
content: Text(
|
||||
(widget.viewModel.currentOwner!.id ==
|
||||
widget.viewModel.sectionOwner!.id)
|
||||
widget.viewModel.ownerOfUser!.id)
|
||||
? "Ce livre appartient à la section. Vous pouvez mettre le code, ou poser une gomette, ..."
|
||||
: "Identifiant propriétaire de ce livre. Pensez à l'écrire pour retrouver lae propriétaire du livre lors de la vente ou du retour !",
|
||||
),
|
||||
|
|
|
|||
Reference in a new issue