mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
fix: add scramble to textfilter component
This commit is contained in:
parent
320c87a1db
commit
a4397d5447
@ -1,6 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { InputGroup, Input, Button, Icon } from "@sveltestrap/sveltestrap";
|
import { InputGroup, Input, Button, Icon } from "@sveltestrap/sveltestrap";
|
||||||
import { createEventDispatcher } from "svelte";
|
import { createEventDispatcher } from "svelte";
|
||||||
|
import { scramble, scrambleNames } from "../joblist/JobInfo.svelte";
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
@ -89,7 +90,7 @@
|
|||||||
bind:value={term}
|
bind:value={term}
|
||||||
on:change={() => termChanged()}
|
on:change={() => termChanged()}
|
||||||
on:keyup={(event) => termChanged(event.key == "Enter" ? 0 : throttle)}
|
on:keyup={(event) => termChanged(event.key == "Enter" ? 0 : throttle)}
|
||||||
placeholder={presetProject ? `Filter ${mode} in ${presetProject} ...` : `Filter ${mode} ...`}
|
placeholder={presetProject ? `Filter ${mode} in ${scrambleNames ? scramble(presetProject) : presetProject} ...` : `Filter ${mode} ...`}
|
||||||
/>
|
/>
|
||||||
{#if presetProject}
|
{#if presetProject}
|
||||||
<Button title="Reset Project" on:click={resetProject}
|
<Button title="Reset Project" on:click={resetProject}
|
||||||
|
Loading…
Reference in New Issue
Block a user