mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-23 18:44:10 +01:00
fix: Devices actions
This commit is contained in:
parent
3d5eb6e061
commit
4305407a32
@ -49,11 +49,11 @@ class UserDeviceListItem extends StatelessWidget {
|
|||||||
key: UserDeviceListItemAction.rename,
|
key: UserDeviceListItemAction.rename,
|
||||||
label: L10n.of(context).changeDeviceName,
|
label: L10n.of(context).changeDeviceName,
|
||||||
),
|
),
|
||||||
|
if (keys != null) ...{
|
||||||
SheetAction(
|
SheetAction(
|
||||||
key: UserDeviceListItemAction.verify,
|
key: UserDeviceListItemAction.verify,
|
||||||
label: L10n.of(context).verifyStart,
|
label: L10n.of(context).verifyStart,
|
||||||
),
|
),
|
||||||
if (keys != null) ...{
|
|
||||||
if (!keys.blocked)
|
if (!keys.blocked)
|
||||||
SheetAction(
|
SheetAction(
|
||||||
key: UserDeviceListItemAction.block,
|
key: UserDeviceListItemAction.block,
|
||||||
@ -66,12 +66,12 @@ class UserDeviceListItem extends StatelessWidget {
|
|||||||
label: L10n.of(context).unblockDevice,
|
label: L10n.of(context).unblockDevice,
|
||||||
isDestructiveAction: true,
|
isDestructiveAction: true,
|
||||||
),
|
),
|
||||||
|
},
|
||||||
SheetAction(
|
SheetAction(
|
||||||
key: UserDeviceListItemAction.remove,
|
key: UserDeviceListItemAction.remove,
|
||||||
label: L10n.of(context).delete,
|
label: L10n.of(context).delete,
|
||||||
isDestructiveAction: true,
|
isDestructiveAction: true,
|
||||||
),
|
),
|
||||||
},
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
Loading…
Reference in New Issue
Block a user