Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/desktop/src/renderer/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export const App = () => {

useEffect(() => dcrypt.onLocked(() => setUnlocked(false)), []);

useEffect(() => {
void dcrypt.vault.status().then((s) => setUnlocked(s.unlocked));
}, []);

const lock = useCallback(async () => {
await dcrypt.vault.lock();
setUnlocked(false);
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop/src/renderer/src/components/NewItemDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
DialogDescription,
DialogFooter,
DialogHeader,
DialogPanel,
DialogTitle,
} from '@constructive-io/ui/dialog';
import { Input } from '@constructive-io/ui/input';
Expand Down Expand Up @@ -94,7 +95,7 @@ export const NewItemDialog = ({
<DialogTitle>New item</DialogTitle>
<DialogDescription>Everything is encrypted before it is stored.</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-4">
<DialogPanel className="flex flex-col gap-4">
<div className="flex gap-3">
<div className="flex w-44 flex-col gap-1.5">
<Label>Type</Label>
Expand Down Expand Up @@ -164,7 +165,7 @@ export const NewItemDialog = ({
<Input id="new-note" value={note} onChange={(e) => setNote(e.target.value)} />
</div>
)}
</div>
</DialogPanel>
<DialogFooter>
<Button variant="outline" onClick={() => onOpenChange(false)} disabled={busy}>
Cancel
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop/src/renderer/src/screens/TotpScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
DialogDescription,
DialogFooter,
DialogHeader,
DialogPanel,
DialogTitle,
} from '@constructive-io/ui/dialog';
import { Input } from '@constructive-io/ui/input';
Expand Down Expand Up @@ -118,7 +119,7 @@ export const TotpScreen = () => {
Paste an otpauth:// URI from another authenticator's export.
</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-1.5">
<DialogPanel className="flex flex-col gap-1.5">
<Label htmlFor="otpauth-uri">otpauth URI</Label>
<Input
id="otpauth-uri"
Expand All @@ -127,7 +128,7 @@ export const TotpScreen = () => {
placeholder="otpauth://totp/Example:me?secret=..."
className="font-mono"
/>
</div>
</DialogPanel>
<DialogFooter>
<Button variant="outline" onClick={() => setShowImport(false)} disabled={busy}>
Cancel
Expand Down
Loading