mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-03 22:01:45 +01:00
1 line
1.9 KiB
Plaintext
1 line
1.9 KiB
Plaintext
{"version":3,"file":"Edit-CvZ7PTDc.js","sources":["../../../resources/js/views/settings/Credentials/Edit.vue"],"sourcesContent":["<script setup>\n import Form from '@/components/formElements/Form'\n import { useNotifyStore } from '@/stores/notify'\n\n const router = useRouter()\n const notify = useNotifyStore()\n const form = reactive(new Form({\n name: trans('auth.webauthn.my_device')\n }))\n\n const props = defineProps({\n credentialId: {\n type: String,\n default: ''\n },\n })\n\n function updateCredential() {\n form.patch('/webauthn/credentials/' + props.credentialId + '/name')\n .then(() => {\n notify.success({ text: trans('auth.webauthn.device_successfully_registered') })\n router.push({ name: 'settings.webauthn.devices' })\n })\n }\n\n</script>\n\n<template>\n <FormWrapper title=\"auth.webauthn.rename_device\">\n <form @submit.prevent=\"updateCredential\" @keydown=\"form.onKeydown($event)\">\n <FormField v-model=\"form.name\" fieldName=\"name\" :fieldError=\"form.errors.get('name')\" inputType=\"text\" label=\"commons.new_name\" autofocus />\n <FormButtons\n :submitId=\"'btnEditCredential'\"\n :isBusy=\"form.isBusy\"\n :caption=\"$t('commons.save')\"\n :showCancelButton=\"true\"\n cancelLandingView=\"settings.webauthn.devices\"\n />\n </form>\n </FormWrapper>\n</template>"],"names":["router","useRouter","notify","useNotifyStore","form","reactive","Form","trans","props","__props","updateCredential"],"mappings":"gUAII,MAAMA,EAASC,EAAS,EAClBC,EAASC,EAAc,EACvBC,EAAOC,EAAS,IAAIC,EAAK,CAC3B,KAAMC,EAAM,yBAAyB,CAC7C,CAAK,CAAC,EAEIC,EAAQC,EAOd,SAASC,GAAmB,CACxBN,EAAK,MAAM,yBAA2BI,EAAM,aAAe,OAAO,EACjE,KAAK,IAAM,CACRN,EAAO,QAAQ,CAAE,KAAMK,EAAM,8CAA8C,CAAG,CAAA,EAC9EP,EAAO,KAAK,CAAE,KAAM,2BAA6B,CAAA,CACpD,CAAA,CACT"} |