mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Progress dialog is now a part of the model GET request
This commit is contained in:
parent
ca7505796d
commit
8bd022bccd
10 changed files with 41 additions and 33 deletions
|
|
@ -112,7 +112,7 @@ class _CategoryDisplayState extends State<CategoryDisplayWidget> {
|
|||
Navigator.push(context, MaterialPageRoute(builder: (context) => CategoryDisplayWidget(null)));
|
||||
} else {
|
||||
// TODO - Refactor this code into the InvenTreePart class
|
||||
InvenTreePartCategory().get(category.parentId).then((var cat) {
|
||||
InvenTreePartCategory().get(context, category.parentId).then((var cat) {
|
||||
if (cat is InvenTreePartCategory) {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => CategoryDisplayWidget(cat)));
|
||||
}
|
||||
|
|
@ -211,7 +211,7 @@ class SubcategoryList extends StatelessWidget {
|
|||
void _openCategory(BuildContext context, int pk) {
|
||||
|
||||
// Attempt to load the sub-category.
|
||||
InvenTreePartCategory().get(pk).then((var cat) {
|
||||
InvenTreePartCategory().get(context, pk).then((var cat) {
|
||||
if (cat is InvenTreePartCategory) {
|
||||
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => CategoryDisplayWidget(cat)));
|
||||
|
|
@ -252,7 +252,7 @@ class PartList extends StatelessWidget {
|
|||
|
||||
void _openPart(BuildContext context, int pk) {
|
||||
// Attempt to load the part information
|
||||
InvenTreePart().get(pk).then((var part) {
|
||||
InvenTreePart().get(context, pk).then((var part) {
|
||||
if (part is InvenTreePart) {
|
||||
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => PartDetailWidget(part)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue