mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-14 12:06:24 +00:00
Code cleanup
This commit is contained in:
parent
2a5bb4631b
commit
d2ce3fadf1
19 changed files with 36 additions and 81 deletions
|
|
@ -42,7 +42,7 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
|
|||
void _saveCompany(Map<String, String> values) async {
|
||||
Navigator.of(context).pop();
|
||||
|
||||
var response = await company.update(values: values);
|
||||
await company.update(values: values);
|
||||
|
||||
refresh();
|
||||
}
|
||||
|
|
@ -57,13 +57,13 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
|
|||
showFormDialog(L10().edit,
|
||||
key: _editCompanyKey,
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
TextButton(
|
||||
child: Text(L10().cancel),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
FlatButton(
|
||||
TextButton(
|
||||
child: Text(L10().save),
|
||||
onPressed: () {
|
||||
if (_editCompanyKey.currentState!.validate()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue