mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:19:17 +03:30
Remove transfer condition
This commit is contained in:
@@ -431,31 +431,32 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
SizedBox(
|
||||
height: 20,
|
||||
),
|
||||
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.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