fix: send GET secret API when creating Flow

This commit is contained in:
Andy Lee 2025-10-01 14:21:12 +08:00
parent 43437c1e2e
commit 7f7367c1e2
No known key found for this signature in database
GPG Key ID: 39DC4436AE3564D5
1 changed files with 5 additions and 2 deletions

View File

@ -61,14 +61,17 @@ export default {
},
inStore: {
type: String,
default: 'cluster',
default: undefined,
}
},
data() {
const validInStore = this.inStore || this.$store.getters['currentStore']() || 'cluster';
return {
secrets: null,
SECRET,
validInStore,
allSecretsSettings: {
updateResources: (secrets) => {
const allSecretsInNamespace = secrets.filter((secret) => this.types.includes(secret._type) && secret.namespace === this.namespace);
@ -221,7 +224,7 @@ export default {
:label="secretNameLabel"
:mode="mode"
:resource-type="SECRET"
:in-store="inStore"
:in-store="validInStore"
:paginated-resource-settings="paginateSecretsSetting"
:all-resources-settings="allSecretsSettings"
/>