Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3546/head
Pranav C 2 years ago
parent
commit
e8e02e0088
  1. 11
      packages/nc-gui/components/dlg/QuickImport.vue
  2. 4
      packages/nc-gui/pages/signup/[[token]].vue

11
packages/nc-gui/components/dlg/QuickImport.vue

@ -272,14 +272,14 @@ defineExpose({
}) })
/** a workaround to override default antd upload api call */ /** a workaround to override default antd upload api call */
const customReqCbk = (o) => { const customReqCbk = (customReqArgs: { file: any; onSuccess: () => void }) => {
importState.fileList.forEach((f) => { importState.fileList.forEach((f) => {
if (f.uid === o.file.uid) { if (f.uid === customReqArgs.file.uid) {
f.status = 'done' f.status = 'done'
handleChange({ file: f, fileList: importState.fileList }) handleChange({ file: f, fileList: importState.fileList })
} }
}) })
o.onSuccess() customReqArgs.onSuccess()
} }
</script> </script>
@ -319,9 +319,9 @@ const customReqCbk = (o) => {
:accept="importMeta.acceptTypes" :accept="importMeta.acceptTypes"
:max-count="1" :max-count="1"
list-type="picture" list-type="picture"
:custom-request="customReqCbk"
@change="handleChange" @change="handleChange"
@reject="rejectDrop" @reject="rejectDrop"
:customRequest="customReqCbk"
> >
<MdiFilePlusOutline size="large" /> <MdiFilePlusOutline size="large" />
@ -419,8 +419,7 @@ const customReqCbk = (o) => {
{{ $t('activity.import') }} {{ $t('activity.import') }}
</a-button> </a-button>
<a-button v-else key="import" type="primary" :loading="loading" :disabled="disableImportButton" <a-button v-else key="import" type="primary" :loading="loading" :disabled="disableImportButton" @click="handleImport">
@click="handleImport">
{{ $t('activity.import') }} {{ $t('activity.import') }}
</a-button> </a-button>
</template> </template>

4
packages/nc-gui/pages/signup/[[token]].vue

@ -78,9 +78,7 @@ async function signUp() {
token: route.params.token, token: route.params.token,
} }
if (subscribe.value) { data.ignore_subscribe = !subscribe.value
data.ignore_subscribe = !subscribe.value
}
api.auth api.auth
.signup(data) .signup(data)

Loading…
Cancel
Save