Hide mobile download (#3543)
* Use correct route when join class by link * Hide room download buttons if not web
This commit is contained in:
parent
be42203feb
commit
f3f87dfcde
2 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
|
|
@ -391,14 +392,14 @@ class RoomDetailsButtonRowState extends State<RoomDetailsButtonRow> {
|
|||
builder: (context) => DownloadAnalyticsDialog(space: room),
|
||||
);
|
||||
},
|
||||
visible: room.isSpace && room.isRoomAdmin,
|
||||
visible: room.isSpace && room.isRoomAdmin && kIsWeb,
|
||||
showInMainView: false,
|
||||
),
|
||||
ButtonDetails(
|
||||
title: l10n.download,
|
||||
icon: const Icon(Icons.download_outlined, size: 30.0),
|
||||
onPressed: widget.controller.downloadChatAction,
|
||||
visible: room.ownPowerLevel >= 50 && !room.isSpace,
|
||||
visible: room.ownPowerLevel >= 50 && !room.isSpace && kIsWeb,
|
||||
showInMainView: false,
|
||||
),
|
||||
ButtonDetails(
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
|
@ -15,6 +16,9 @@ class DownloadSpaceAnalyticsButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!kIsWeb) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final iconColor = Theme.of(context).textTheme.bodyLarge!.color;
|
||||
return Column(
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue