mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +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,
 | 
			
		||||
              label: L10n.of(context).changeDeviceName,
 | 
			
		||||
            ),
 | 
			
		||||
            SheetAction(
 | 
			
		||||
              key: UserDeviceListItemAction.verify,
 | 
			
		||||
              label: L10n.of(context).verifyStart,
 | 
			
		||||
            ),
 | 
			
		||||
            if (keys != null) ...{
 | 
			
		||||
              SheetAction(
 | 
			
		||||
                key: UserDeviceListItemAction.verify,
 | 
			
		||||
                label: L10n.of(context).verifyStart,
 | 
			
		||||
              ),
 | 
			
		||||
              if (!keys.blocked)
 | 
			
		||||
                SheetAction(
 | 
			
		||||
                  key: UserDeviceListItemAction.block,
 | 
			
		||||
@ -66,12 +66,12 @@ class UserDeviceListItem extends StatelessWidget {
 | 
			
		||||
                  label: L10n.of(context).unblockDevice,
 | 
			
		||||
                  isDestructiveAction: true,
 | 
			
		||||
                ),
 | 
			
		||||
              SheetAction(
 | 
			
		||||
                key: UserDeviceListItemAction.remove,
 | 
			
		||||
                label: L10n.of(context).delete,
 | 
			
		||||
                isDestructiveAction: true,
 | 
			
		||||
              ),
 | 
			
		||||
            },
 | 
			
		||||
            SheetAction(
 | 
			
		||||
              key: UserDeviceListItemAction.remove,
 | 
			
		||||
              label: L10n.of(context).delete,
 | 
			
		||||
              isDestructiveAction: true,
 | 
			
		||||
            ),
 | 
			
		||||
          ],
 | 
			
		||||
        );
 | 
			
		||||
        switch (action) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user