mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 06:08:56 +03:30
Set repair to my items and fix colors of items in result
This commit is contained in:
@@ -373,6 +373,7 @@ class ItemProvider extends ChangeNotifier {
|
||||
udi: data['udi'] != null ? data['udi'] : '',
|
||||
status: data['status'],
|
||||
packageId: data['package_id'].toString(),
|
||||
repair: data['repair'],
|
||||
filePath: mediaList,
|
||||
);
|
||||
return result!;
|
||||
|
||||
@@ -287,18 +287,11 @@ class MyItemProvider extends ChangeNotifier {
|
||||
print(itemData);
|
||||
}
|
||||
|
||||
Future<void> repairItems(String itemId, String value) async {
|
||||
Future<void> repairItems(String itemId) async {
|
||||
var response = await http.post(
|
||||
Uri.parse(Url.repairItems(itemId)),
|
||||
body: json.encode(
|
||||
{
|
||||
'status': value,
|
||||
},
|
||||
),
|
||||
headers: {
|
||||
'Authorization': User.token,
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json"
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user