@@ -151,6 +151,7 @@ import axios from 'axios'
151151import { byError , emailQueries , orcidQueries } from ' src/error-filtering'
152152import { computed , defineComponent } from ' vue'
153153import InfoDialog from ' components/InfoDialog.vue'
154+ import { useQuasar } from ' quasar'
154155import { useValidation } from ' src/store/validation'
155156
156157export default defineComponent ({
@@ -193,6 +194,7 @@ export default defineComponent({
193194 }
194195 },
195196 setup (props ) {
197+ const $q = useQuasar ()
196198 const { errors } = useValidation ()
197199 const orcidErrors = computed (() => {
198200 const orcidErrors = orcidQueries (props .index )
@@ -212,7 +214,7 @@ export default defineComponent({
212214 },
213215 watch: {
214216 // eslint-disable-next-line @typescript-eslint/no-unused-vars
215- orcid (oldVal , newVal ) {
217+ orcid (_oldVal , _newVal ) {
216218 if (this .orcid .length === 37 && this .orcidErrors .length === 0 ) {
217219 // If a valid orcid is found, look for data in the orcid API (maybe only if we do not have data already)
218220 const orcidSearchApi = ' https://pub.orcid.org/v3.0/expanded-search/?q=orcid:'
@@ -240,6 +242,17 @@ export default defineComponent({
240242 resp .config .props .$emit (' update' , ' email' , resp .data [' expanded-result' ][0 ].email [0 ])
241243 // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
242244 resp .config .props .$emit (' update' , ' affiliation' , resp .data [' expanded-result' ][0 ][' institution-name' ][0 ])
245+
246+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
247+ resp .config .props .$q .notify ({
248+ message: ' Author information fetched from ORCID API!' ,
249+ color: ' primary' ,
250+ progress: true ,
251+ timeout: 800 ,
252+ actions: [
253+ { label: ' Dismiss' , color: ' white' }
254+ ]
255+ })
243256 })
244257 }
245258 }
0 commit comments