Always show logout option

This commit is contained in:
Hillel Coren 2023-06-19 12:38:34 +03:00
parent f35e199116
commit 26c38e5ed3
1 changed files with 29 additions and 28 deletions

View File

@ -1150,7 +1150,6 @@ class SidebarFooter extends StatelessWidget {
}, },
tooltip: prefState.enableTooltips ? localization.userGuide : '', tooltip: prefState.enableTooltips ? localization.userGuide : '',
), ),
if (state.userCompany.isAdmin)
IconButton( IconButton(
icon: Icon(Icons.info_outline), icon: Icon(Icons.info_outline),
onPressed: () => _showAbout(context), onPressed: () => _showAbout(context),
@ -1568,6 +1567,7 @@ void _showAbout(BuildContext context) async {
color: Colors.cyan, color: Colors.cyan,
onPressed: () => launchUrl(Uri.parse(kReleaseNotesUrl)), onPressed: () => launchUrl(Uri.parse(kReleaseNotesUrl)),
), ),
if (state.userCompany.isAdmin) ...[
if (state.isSelfHosted || !kReleaseMode) ...[ if (state.isSelfHosted || !kReleaseMode) ...[
AppButton( AppButton(
label: localization.healthCheck.toUpperCase(), label: localization.healthCheck.toUpperCase(),
@ -1593,6 +1593,7 @@ void _showAbout(BuildContext context) async {
onPressed: () => _showUpdate(context), onPressed: () => _showUpdate(context),
), ),
], ],
],
if (state.company.daysActive > 30) if (state.company.daysActive > 30)
AppButton( AppButton(
label: localization.reviewApp.toUpperCase(), label: localization.reviewApp.toUpperCase(),