setting to disable early access tools
This commit is contained in:
@@ -21,6 +21,12 @@ class LandingAction extends HookConsumerWidget {
|
||||
),
|
||||
);
|
||||
|
||||
final showEarlyAccessFeatures = ref.watch(
|
||||
settingsRepositoryProvider.select(
|
||||
(value) => value.valueOrNull?.showEarlyAccessFeatures ?? true,
|
||||
),
|
||||
);
|
||||
|
||||
return Visibility(
|
||||
visible: sessionTokenAvailable,
|
||||
replacement: Container(
|
||||
@@ -68,15 +74,6 @@ class LandingAction extends HookConsumerWidget {
|
||||
icon: const Icon(MdiIcons.searchWeb),
|
||||
label: const Text('Search'),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
ref.read(createTabStreamProvider.notifier).createTab(
|
||||
CreateTab(preferredTool: KagiTool.assistant),
|
||||
);
|
||||
},
|
||||
icon: const Icon(MdiIcons.brain),
|
||||
label: const Text('Assistant'),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
ref.read(createTabStreamProvider.notifier).createTab(
|
||||
@@ -86,6 +83,16 @@ class LandingAction extends HookConsumerWidget {
|
||||
icon: const Icon(MdiIcons.text),
|
||||
label: const Text('Summarizer'),
|
||||
),
|
||||
if (showEarlyAccessFeatures)
|
||||
OutlinedButton.icon(
|
||||
onPressed: () {
|
||||
ref.read(createTabStreamProvider.notifier).createTab(
|
||||
CreateTab(preferredTool: KagiTool.assistant),
|
||||
);
|
||||
},
|
||||
icon: const Icon(MdiIcons.brain),
|
||||
label: const Text('Assistant'),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user