mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
fix: refresh device status when min pin len or pin is changed for passkey
This commit is contained in:
@@ -195,6 +195,7 @@ class DeviceManager {
|
||||
try {
|
||||
const res = await invoke("change_fido_pin", { currentPin: current, newPin: next });
|
||||
logger.add(res as string, "success");
|
||||
await this.refresh();
|
||||
return { success: true };
|
||||
} catch (err) {
|
||||
logger.add(`PIN Error: ${err}`, "error");
|
||||
|
||||
@@ -77,7 +77,9 @@
|
||||
<Sidebar.Provider>
|
||||
<Sidebar.Root collapsible="icon">
|
||||
<Sidebar.Header>
|
||||
<div class="flex items-center gap-3 p-2">
|
||||
<div
|
||||
class="flex items-center gap-3 p-2 group-data-[collapsible=icon]:!p-0 group-data-[collapsible=icon]:justify-center"
|
||||
>
|
||||
<img
|
||||
src="/in.suyogtandel.picoforge.svg"
|
||||
alt="PicoForge Logo"
|
||||
|
||||
@@ -6,21 +6,12 @@
|
||||
import { Separator } from "$lib/components/ui/separator";
|
||||
import { Slider } from "$lib/components/ui/slider/index.js";
|
||||
import * as Card from "$lib/components/ui/card";
|
||||
import * as Alert from "$lib/components/ui/alert";
|
||||
import * as Select from "$lib/components/ui/select";
|
||||
|
||||
import { device } from "$lib/device/manager.svelte";
|
||||
import { LED_DRIVERS, VENDORS } from "$lib/device/constants.svelte";
|
||||
|
||||
import {
|
||||
Microchip,
|
||||
RefreshCw,
|
||||
Save,
|
||||
Settings,
|
||||
Tag,
|
||||
TriangleAlert,
|
||||
X,
|
||||
} from "@lucide/svelte";
|
||||
import { Microchip, RefreshCw, Save, Settings, Tag } from "@lucide/svelte";
|
||||
|
||||
import { configViewState as state } from "$lib/state/configState.svelte";
|
||||
import NoDeviceStatus from "$lib/components/device/NoDeviceStatus.svelte";
|
||||
|
||||
Reference in New Issue
Block a user