mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:28:56 +03:30
Remove transfer for items in packages
This commit is contained in:
@@ -431,32 +431,31 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
SizedBox(
|
||||
height: 20,
|
||||
),
|
||||
if (datas.repair == 0)
|
||||
((datas.packageId == "null") &&
|
||||
(userData['roles']?.contains('Supervisor') &&
|
||||
datas.hospital
|
||||
.contains(userData['medical_center'])) ||
|
||||
(userData['roles']?.contains('User')))
|
||||
? TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: kDarkBlue,
|
||||
secondColor: kDarkBlueSub,
|
||||
text: 'Transfer',
|
||||
onTap: () {
|
||||
push();
|
||||
},
|
||||
)
|
||||
// : datas.packageId != "null"
|
||||
// ? TransferDestroyButton(
|
||||
// deviceBlockSize: _deviceBlockSize,
|
||||
// firstColor: kDarkBlue,
|
||||
// secondColor: kDarkBlueSub,
|
||||
// text: 'Transfer',
|
||||
// onTap: () {
|
||||
// push();
|
||||
// },
|
||||
// )
|
||||
: Container(),
|
||||
if (datas.packageId == "null")
|
||||
if (datas.repair == 0)
|
||||
(userData['roles']?.contains('Supervisor') &&
|
||||
datas.hospital.contains(userData['medical_center']) ||
|
||||
(userData['roles']?.contains('User')))
|
||||
? TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: kDarkBlue,
|
||||
secondColor: kDarkBlueSub,
|
||||
text: 'Transfer',
|
||||
onTap: () {
|
||||
push();
|
||||
},
|
||||
)
|
||||
// : datas.packageId != "null"
|
||||
// ? TransferDestroyButton(
|
||||
// deviceBlockSize: _deviceBlockSize,
|
||||
// firstColor: kDarkBlue,
|
||||
// secondColor: kDarkBlueSub,
|
||||
// text: 'Transfer',
|
||||
// onTap: () {
|
||||
// push();
|
||||
// },
|
||||
// )
|
||||
: Container(),
|
||||
if (datas.repair == 0)
|
||||
if (datas.packageId == "null")
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user