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