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 : '',
),
if (state.userCompany.isAdmin)
IconButton(
icon: Icon(Icons.info_outline),
onPressed: () => _showAbout(context),
@ -1568,6 +1567,7 @@ void _showAbout(BuildContext context) async {
color: Colors.cyan,
onPressed: () => launchUrl(Uri.parse(kReleaseNotesUrl)),
),
if (state.userCompany.isAdmin) ...[
if (state.isSelfHosted || !kReleaseMode) ...[
AppButton(
label: localization.healthCheck.toUpperCase(),
@ -1593,6 +1593,7 @@ void _showAbout(BuildContext context) async {
onPressed: () => _showUpdate(context),
),
],
],
if (state.company.daysActive > 30)
AppButton(
label: localization.reviewApp.toUpperCase(),