Skip to content

Commit

Permalink
chore(plugin): use description from backend schema (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored Aug 7, 2023
1 parent 36f841c commit ffc112a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9,349 deletions.
6 changes: 2 additions & 4 deletions src/pages/plugins/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ import EntityForm from '@/components/EntityForm/EntityForm.vue'
import FormPageMixin from '@/components/EntityForm/mixins/FormPage'
import { capitalize, uuidRegEx, redirectOnResponseStatus, isObjectEmpty } from '@/components/EntityForm/helpers'
import { pluginMeta } from './PluginMeta'
import PluginConfig from './PluginConfig'
import customSchemas from '@/schemas/CustomSchemas'
import typedefs from '@/schemas/typedefs'
import { ArrayStringFieldSchema } from '@/components/EntityForm/fields'
Expand Down Expand Up @@ -563,9 +562,8 @@ export default {
}
if (parent === 'config') {
const definition = PluginConfig[this.plugin]?.find(config => config.name === key)
if (definition?.description) {
output[field].help = marked.parse(definition.description, { mangle: false, headerIds: false })
if (schema[key]?.description) {
output[field].help = marked.parse(schema[key].description, { mangle: false, headerIds: false })
}
}
Expand Down
Loading

0 comments on commit ffc112a

Please sign in to comment.