Skip to content

Commit

Permalink
fix(app) tenant mode ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
helderbetiol committed Sep 12, 2024
1 parent b752f7e commit 9b274f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
8 changes: 0 additions & 8 deletions APP/lib/common/appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ AppBar myAppBar(context, userEmail, {isTenantMode = false}) {
);

List<PopupMenuEntry<String>> entries = <PopupMenuEntry<String>>[
PopupMenuItem(
value: Tools.cli.name,
child: Text(localeMsg.downloadCli),
),
PopupMenuItem(
value: "unity",
child: Text(localeMsg.downloadUnity),
),
PopupMenuItem(
value: "change",
child: Text(AppLocalizations.of(context)!.changePassword),
Expand Down
18 changes: 12 additions & 6 deletions APP/lib/pages/projects_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _ProjectsPageState extends State<ProjectsPage> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
...getAlertDemoWidgets(localeMsg),
...getAlertWidgets(localeMsg),
// SizedBox(height: 30),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Expand All @@ -78,10 +78,13 @@ class _ProjectsPageState extends State<ProjectsPage> {
style: Theme.of(context).textTheme.headlineLarge),
Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 10.0, bottom: 10),
child: impactViewButton(),
),
!widget.isTenantMode
? Padding(
padding:
const EdgeInsets.only(right: 10.0, bottom: 10),
child: impactViewButton(),
)
: Container(),
Padding(
padding: const EdgeInsets.only(right: 10.0, bottom: 10),
child: createProjectButton(),
Expand Down Expand Up @@ -428,7 +431,10 @@ class _ProjectsPageState extends State<ProjectsPage> {
);
}

List<Widget> getAlertDemoWidgets(AppLocalizations localeMsg) {
List<Widget> getAlertWidgets(AppLocalizations localeMsg) {
if (widget.isTenantMode) {
return [];
}
return [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Expand Down

0 comments on commit 9b274f1

Please sign in to comment.