mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-29 09:00:26 -05:00
fix(ui): include parameters into request for plugin schema fetching (#8002)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -150,12 +150,6 @@
|
||||
{},
|
||||
);
|
||||
|
||||
if (requiredFields && !properties.id) {
|
||||
properties = {
|
||||
...properties,
|
||||
id: {type: "string", $required: true},
|
||||
};
|
||||
}
|
||||
return this.sortProperties(properties);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user