Always show logout option
This commit is contained in:
parent
f35e199116
commit
26c38e5ed3
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue