feat: allow to filter events by local-only
In addition to internal (self + federated) and global (global external search engine), introduce the self possibility Closes #1322 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -293,6 +293,7 @@ export enum InstanceFollowStatus {
|
||||
}
|
||||
|
||||
export enum SearchTargets {
|
||||
SELF = "SELF",
|
||||
INTERNAL = "INTERNAL",
|
||||
GLOBAL = "GLOBAL",
|
||||
}
|
||||
|
||||
@@ -68,6 +68,22 @@
|
||||
<fieldset class="flex flex-col">
|
||||
<legend class="sr-only">{{ t("Search target") }}</legend>
|
||||
|
||||
<div>
|
||||
<input
|
||||
id="selfTarget"
|
||||
v-model="searchTarget"
|
||||
type="radio"
|
||||
name="selfTarget"
|
||||
:value="SearchTargets.SELF"
|
||||
class="w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300 dark:focus:ring-blue-600 dark:focus:bg-blue-600 dark:bg-gray-700 dark:border-gray-600"
|
||||
/>
|
||||
<label
|
||||
for="selfTarget"
|
||||
class="ml-3 font-medium text-gray-900 dark:text-gray-300"
|
||||
>{{ t("From this instance only") }}</label
|
||||
>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<input
|
||||
id="internalTarget"
|
||||
|
||||
Reference in New Issue
Block a user