fix(ui): include parameters into request for plugin schema fetching (#8002)

This commit is contained in:
Miloš Paunović
2025-03-24 09:12:52 +01:00
committed by GitHub
parent 8642771a2b
commit 49af8f336a
3 changed files with 2 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ export default {
return this.root ? this.root + "." + addKey : addKey;
},
isRequired(key) {
return key === "id" || this.schema.required && this.schema.required.includes(key);
return this.schema.required && this.schema.required.includes(key);
},
getType(property, key) {
if (property.enum !== undefined) {

View File

@@ -150,12 +150,6 @@
{},
);
if (requiredFields && !properties.id) {
properties = {
...properties,
id: {type: "string", $required: true},
};
}
return this.sortProperties(properties);
}

View File

@@ -47,7 +47,7 @@ export default {
`${apiUrl(this)}/plugins/${options.cls}/versions/${options.version}` :
`${apiUrl(this)}/plugins/${options.cls}`;
return this.$http.get(url).then(response => {
return this.$http.get(url, {params: options}).then(response => {
if (options.commit !== false) {
if (options.all === true) {
commit("setPluginAllProps", response.data);