mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 08:36:50 +08:00
Make MultiRepos Pro only
This commit is contained in:
@ -300,6 +300,7 @@ drawer:
|
||||
feedback: Feedback
|
||||
bug: Bug Report
|
||||
remote: No Git Host
|
||||
addRepo: Add Repository
|
||||
setup:
|
||||
autoconfigure:
|
||||
title: We need permission to perform the following steps
|
||||
|
@ -41,11 +41,11 @@ class Features {
|
||||
Feature.singleJournalEntry,
|
||||
Feature.configureBottomMenuBar,
|
||||
Feature.customFileNamePerEditor,
|
||||
Feature.multiRepos,
|
||||
];
|
||||
|
||||
static final inProgress = <String>[
|
||||
tr("feature.graphVisualization"),
|
||||
tr("feature.mutliRepos"),
|
||||
tr("feature.gitLog"),
|
||||
tr("feature.markdownToolbar"),
|
||||
];
|
||||
@ -355,6 +355,14 @@ class Feature {
|
||||
"",
|
||||
true,
|
||||
);
|
||||
|
||||
static final multiRepos = Feature(
|
||||
"multiRepos",
|
||||
DateTime(2021, 02, 20),
|
||||
tr("feature.mutliRepos"),
|
||||
"",
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
||||
// Feature Adding checklist
|
||||
|
@ -13,11 +13,13 @@ import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
import 'package:gitjournal/analytics.dart';
|
||||
import 'package:gitjournal/app_settings.dart';
|
||||
import 'package:gitjournal/features.dart';
|
||||
import 'package:gitjournal/repository.dart';
|
||||
import 'package:gitjournal/repository_manager.dart';
|
||||
import 'package:gitjournal/utils.dart';
|
||||
import 'package:gitjournal/utils/logger.dart';
|
||||
import 'package:gitjournal/widgets/app_drawer_header.dart';
|
||||
import 'package:gitjournal/widgets/pro_overlay.dart';
|
||||
|
||||
class AppDrawer extends StatefulWidget {
|
||||
@override
|
||||
@ -64,15 +66,18 @@ class _AppDrawerState extends State<AppDrawer>
|
||||
children: <Widget>[
|
||||
const SizedBox(height: 8),
|
||||
for (var id in repoIds) RepoTile(id),
|
||||
_buildDrawerTile(
|
||||
context,
|
||||
icon: Icons.add,
|
||||
title: 'Add Repository',
|
||||
onTap: () {
|
||||
repoManager.addRepo();
|
||||
Navigator.pop(context);
|
||||
},
|
||||
selected: false,
|
||||
ProOverlay(
|
||||
feature: Feature.multiRepos,
|
||||
child: _buildDrawerTile(
|
||||
context,
|
||||
icon: Icons.add,
|
||||
title: tr('drawer.addRepo'),
|
||||
onTap: () {
|
||||
repoManager.addRepo();
|
||||
Navigator.pop(context);
|
||||
},
|
||||
selected: false,
|
||||
),
|
||||
),
|
||||
divider,
|
||||
],
|
||||
|
Reference in New Issue
Block a user