Skip to content

Commit

Permalink
refactor(authz): adapt limit and skip in mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon committed Jan 24, 2025
1 parent 6fa9b0b commit fcaacf2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/i18n/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ export default {
zh: '认证源',
en: 'Auth Source',
},
authzMongoLimit: {
zh: '记录条数限制',
en: 'Record Limit',
},
authzMongoSkip: {
zh: '跳过记录数',
en: 'Skip',
},
srvRecord: {
zh: 'SRV 记录',
en: 'SRV Record',
Expand Down
12 changes: 12 additions & 0 deletions src/views/Auth/components/DatabaseConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,18 @@
</el-select>
</el-form-item>
</el-col>
<template v-if="!isAuthn">
<el-col :span="12">
<el-form-item :label="t('Auth.authzMongoLimit')">
<CustomInputNumber v-model="databaseConfig.limit" :min="1" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item :label="t('Auth.authzMongoSkip')">
<CustomInputNumber v-model="databaseConfig.skip" :min="0" />
</el-form-item>
</el-col>
</template>
</template>

<el-col :span="12">
Expand Down

0 comments on commit fcaacf2

Please sign in to comment.