Skip to content

Commit

Permalink
iPhone tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Aug 12, 2021
1 parent 6ce6410 commit 60f5e17
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
18 changes: 9 additions & 9 deletions lib/ui/app/lists/activity_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ class ActivityListTile extends StatelessWidget {
trailing: enableNavigation ? Icon(Icons.navigate_next) : null,
subtitle: Row(
children: <Widget>[
Text(formatDate(
convertTimestampToDateString(activity.updatedAt), context,
showTime: true)),
(activity.ip ?? '').isNotEmpty
? Text(' • ' + activity.ip)
: SizedBox(),
(activity.notes ?? '').isNotEmpty
? Text(' • ' + localization.lookup(activity.notes).trim())
: SizedBox(),
Flexible(
child: Text(((activity.notes ?? '').isNotEmpty
? localization.lookup(activity.notes).trim() + '\n'
: '') +
formatDate(
convertTimestampToDateString(activity.updatedAt), context,
showTime: true) +
((activity.ip ?? '').isNotEmpty ? ' • ' + activity.ip : '')),
),
],
),
);
Expand Down
20 changes: 12 additions & 8 deletions lib/ui/settings/account_management.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class _AccountOverview extends StatelessWidget {
Expanded(
child: AppButton(
label: localization.purchaseLicense.toUpperCase(),
iconData: Icons.cloud_download,
iconData: isMobile(context) ? null : Icons.cloud_download,
onPressed: () async {
if (await canLaunch(kWhiteLabelUrl)) {
launch(kWhiteLabelUrl);
Expand All @@ -325,7 +325,7 @@ class _AccountOverview extends StatelessWidget {
Expanded(
child: AppButton(
label: localization.applyLicense.toUpperCase(),
iconData: Icons.cloud_done,
iconData: isMobile(context) ? null : Icons.cloud_done,
onPressed: state.isWhiteLabeled
? null
: () {
Expand Down Expand Up @@ -384,7 +384,9 @@ class _AccountOverview extends StatelessWidget {
Expanded(
child: AppButton(
label: localization.apiTokens.toUpperCase(),
iconData: getEntityIcon(EntityType.token),
iconData: isMobile(context)
? null
: getEntityIcon(EntityType.token),
onPressed: () {
store.dispatch(ViewSettings(
section: kSettingsTokens,
Expand All @@ -396,7 +398,9 @@ class _AccountOverview extends StatelessWidget {
Expanded(
child: AppButton(
label: localization.apiWebhooks.toUpperCase(),
iconData: getEntityIcon(EntityType.webhook),
iconData: isMobile(context)
? null
: getEntityIcon(EntityType.webhook),
onPressed: () {
store.dispatch(ViewSettings(
section: kSettingsWebhooks,
Expand All @@ -411,15 +415,15 @@ class _AccountOverview extends StatelessWidget {
Expanded(
child: AppButton(
label: localization.apiDocs.toUpperCase(),
iconData: MdiIcons.bookshelf,
iconData: isMobile(context) ? null : MdiIcons.bookshelf,
onPressed: () => launch(kApiDocsURL),
),
),
SizedBox(width: kGutterWidth),
Expanded(
child: AppButton(
label: 'Zapier',
iconData: MdiIcons.cloud,
iconData: isMobile(context) ? null : MdiIcons.cloud,
onPressed: () => launch(kZapierURL),
),
),
Expand All @@ -436,7 +440,7 @@ class _AccountOverview extends StatelessWidget {
child: AppButton(
label: localization.purgeData.toUpperCase(),
color: Colors.red,
iconData: Icons.delete,
iconData: isMobile(context) ? null : Icons.delete,
onPressed: () {
confirmCallback(
context: context,
Expand All @@ -462,7 +466,7 @@ class _AccountOverview extends StatelessWidget {
? localization.cancelAccount.toUpperCase()
: localization.deleteCompany.toUpperCase(),
color: Colors.red,
iconData: Icons.delete,
iconData: isMobile(context) ? null : Icons.delete,
onPressed: () {
String message = companies.length == 1
? localization.cancelAccountMessage
Expand Down

0 comments on commit 60f5e17

Please sign in to comment.