This commit is contained in:
Hillel Coren 2021-02-14 18:04:30 +02:00
parent 1a463098d9
commit 59cfdc447d
2 changed files with 6 additions and 1 deletions

View File

@ -193,6 +193,8 @@ abstract class UIState implements Built<UIState, UIStateBuilder> {
currentRoute.endsWith('/edit') || currentRoute.endsWith('/edit') ||
currentRoute.endsWith('refund'); currentRoute.endsWith('refund');
bool get isInPdf => currentRoute.endsWith('/pdf');
bool get isEmailing => currentRoute.endsWith('/email'); bool get isEmailing => currentRoute.endsWith('/email');
bool get isViewing => !isEditing && !isEmailing; bool get isViewing => !isEditing && !isEmailing;

View File

@ -658,7 +658,10 @@ class SidebarFooter extends StatelessWidget {
), ),
IconButton( IconButton(
icon: Icon(Icons.info_outline), icon: Icon(Icons.info_outline),
onPressed: () => _showAbout(context), // prevent the modal from being stuck over the pdf
onPressed: state.uiState.isInPdf && kIsWeb
? null
: () => _showAbout(context),
tooltip: localization.about, tooltip: localization.about,
), ),
/* /*