mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 17:28:56 +03:30
Set repair to my items and fix colors of items in result
This commit is contained in:
@@ -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