feat(KAN-55): support app links, file selection and clipboard
This commit is contained in:
@@ -19,6 +19,7 @@ import { Label } from '@/components/ui/label';
|
||||
import { useFormProtection } from '@/composables/useFormProtection';
|
||||
import { useLocalization } from '@/composables/useLocalization';
|
||||
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
|
||||
import { copyText } from '@/lib/clipboard';
|
||||
import { confirm } from '@/routes/two-factor';
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -94,7 +95,7 @@ async function copyKey(): Promise<void> {
|
||||
}
|
||||
copyError.value = false;
|
||||
try {
|
||||
await navigator.clipboard.writeText(key);
|
||||
await copyText(key);
|
||||
if (isOpen.value && manualSetupKey.value === key) {
|
||||
copied.value = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user