Browse Source

fix/pr review included

pull/3083/head
Muhammed Mustafa 2 years ago
parent
commit
4745c9d810
  1. 6
      packages/nc-gui-v2/components/shared-view/AskPassword.vue

6
packages/nc-gui-v2/components/shared-view/AskPassword.vue

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { notification } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { extractSdkResponseErrorMsg } from '~/utils' import { extractSdkResponseErrorMsg } from '~/utils'
const props = defineProps<Props>() const props = defineProps<Props>()
const emit = defineEmits(['update:modelValue']) const emit = defineEmits(['update:modelValue'])
@ -19,9 +19,7 @@ const onFinish = async () => {
vModel.value = false vModel.value = false
} catch (e: any) { } catch (e: any) {
console.error(e) console.error(e)
notification.error({ message.error(await extractSdkResponseErrorMsg(e))
message: await extractSdkResponseErrorMsg(e),
})
} }
} }
</script> </script>

Loading…
Cancel
Save