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