Skip to content

Commit b6da033

Browse files
committed
Merge branch 'develop'
2 parents 2528564 + a51fbf3 commit b6da033

File tree

9 files changed

+44
-34
lines changed

9 files changed

+44
-34
lines changed

.github/workflows/flatpak.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
draft: false
8787
prerelease: false
8888
title: "Latest Release"
89-
automatic_release_tag: "v5.0.150"
89+
automatic_release_tag: "v5.0.151"
9090
files: |
9191
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
9292
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash

flatpak/com.invoiceninja.InvoiceNinja.metainfo.xml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
</screenshots>
5151
<content_rating type="oars-1.1"/>
5252
<releases>
53+
<release version="5.0.151" date="2024-01-23"/>
5354
<release version="5.0.150" date="2024-01-18"/>
5455
<release version="5.0.149" date="2024-01-12"/>
5556
<release version="5.0.148" date="2024-01-08"/>

lib/constants.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Constants {
66
}
77

88
// TODO remove version once #46609 is fixed
9-
const String kClientVersion = '5.0.150';
9+
const String kClientVersion = '5.0.151';
1010
const String kMinServerVersion = '5.0.4';
1111

1212
const String kAppName = 'Invoice Ninja';

lib/ui/reports/reports_screen.dart

+18-15
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,14 @@ class ReportsScreen extends StatelessWidget {
385385
viewModel.onExportPressed(context);
386386
},
387387
),
388-
AppTextButton(
389-
label: localization.schedule,
390-
isInHeader: true,
391-
onPressed: () {
392-
viewModel.onSchedulePressed(context);
393-
},
394-
),
388+
if (supportsLatestFeatures('5.8.0'))
389+
AppTextButton(
390+
label: localization.schedule,
391+
isInHeader: true,
392+
onPressed: () {
393+
viewModel.onSchedulePressed(context);
394+
},
395+
),
395396
],
396397
Padding(
397398
padding: const EdgeInsets.only(right: 8),
@@ -545,15 +546,17 @@ class ReportsScreen extends StatelessWidget {
545546
},
546547
),
547548
),
548-
SizedBox(width: kGutterWidth),
549-
Expanded(
550-
child: AppButton(
551-
label: localization.schedule,
552-
onPressed: () {
553-
viewModel.onSchedulePressed(context);
554-
},
549+
if (supportsLatestFeatures('5.8.0')) ...[
550+
SizedBox(width: kGutterWidth),
551+
Expanded(
552+
child: AppButton(
553+
label: localization.schedule,
554+
onPressed: () {
555+
viewModel.onSchedulePressed(context);
556+
},
557+
),
555558
),
556-
),
559+
],
557560
],
558561
),
559562
),

lib/ui/schedule/edit/schedule_edit.dart

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import 'package:invoiceninja_flutter/ui/schedule/edit/schedule_edit_vm.dart';
1919
import 'package:invoiceninja_flutter/utils/localization.dart';
2020
import 'package:invoiceninja_flutter/utils/completers.dart';
2121
import 'package:invoiceninja_flutter/ui/app/scrollable_listview.dart';
22+
import 'package:invoiceninja_flutter/utils/platforms.dart';
2223
import 'package:invoiceninja_flutter/utils/strings.dart';
2324

2425
class ScheduleEdit extends StatefulWidget {
@@ -163,6 +164,9 @@ class _ScheduleEditState extends State<ScheduleEdit> {
163164
);
164165
},
165166
items: ScheduleEntity.TEMPLATES
167+
.where((entry) =>
168+
supportsLatestFeatures('5.8.0') ||
169+
entry != ScheduleEntity.TEMPLATE_EMAIL_REPORT)
166170
.map((entry) => DropdownMenuItem(
167171
value: entry,
168172
child: Text(localization.lookup(entry)),

lib/ui/settings/import_export.dart

+16-14
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,22 @@ class _ImportExportState extends State<ImportExport> {
356356
},
357357
),
358358
),
359-
SizedBox(width: kGutterWidth),
360-
Expanded(
361-
child: AppButton(
362-
label: localization.schedule,
363-
iconData: Icons.schedule,
364-
onPressed: () {
365-
createEntity(
366-
entity: ScheduleEntity(
367-
ScheduleEntity.TEMPLATE_EMAIL_REPORT)
368-
.rebuild((b) => b
369-
..parameters.reportName =
370-
_exportType.name));
371-
},
372-
))
359+
if (supportsLatestFeatures('5.8.0')) ...[
360+
SizedBox(width: kGutterWidth),
361+
Expanded(
362+
child: AppButton(
363+
label: localization.schedule,
364+
iconData: Icons.schedule,
365+
onPressed: () {
366+
createEntity(
367+
entity: ScheduleEntity(
368+
ScheduleEntity.TEMPLATE_EMAIL_REPORT)
369+
.rebuild((b) => b
370+
..parameters.reportName =
371+
_exportType.name));
372+
},
373+
))
374+
],
373375
],
374376
)
375377
],

pubspec.foss.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: invoiceninja_flutter
22
description: Client for Invoice Ninja
3-
version: 5.0.150+150
3+
version: 5.0.151+151
44
homepage: https://invoiceninja.com
55
documentation: https://invoiceninja.github.io
66
publish_to: none

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: invoiceninja_flutter
22
description: Client for Invoice Ninja
3-
version: 5.0.150+150
3+
version: 5.0.151+151
44
homepage: https://invoiceninja.com
55
documentation: https://invoiceninja.github.io
66
publish_to: none

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: invoiceninja
2-
version: '5.0.150'
2+
version: '5.0.151'
33
summary: Create invoices, accept payments, track expenses & time tasks
44
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
55

0 commit comments

Comments
 (0)