5 Commits

Author SHA1 Message Date
4ec934c96b Merge pull request 'fixed CORS wildcard' (#55) from CORS-#54 into main
Some checks failed
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/frontend Pipeline failed
ci/woodpecker/push/fx_ingestor Pipeline failed
ci/woodpecker/push/payments_orchestrator Pipeline failed
ci/woodpecker/push/fx_oracle Pipeline failed
ci/woodpecker/push/ledger Pipeline failed
ci/woodpecker/push/mntx_gateway Pipeline failed
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/notification Pipeline failed
ci/woodpecker/push/chain_gateway Pipeline was successful
Reviewed-on: #55
2025-12-09 19:00:01 +00:00
Stephan D
19df740550 fixed CORS wildcard 2025-12-09 19:59:33 +01:00
1079ad7d0a Merge pull request 'Organizations now load only once' (#38) from SEND002 into main
Some checks failed
ci/woodpecker/push/db Pipeline is pending
ci/woodpecker/push/frontend Pipeline is pending
ci/woodpecker/push/fx_ingestor Pipeline is pending
ci/woodpecker/push/fx_oracle Pipeline is pending
ci/woodpecker/push/ledger Pipeline is pending
ci/woodpecker/push/mntx_gateway Pipeline is pending
ci/woodpecker/push/nats Pipeline is pending
ci/woodpecker/push/notification Pipeline is pending
ci/woodpecker/push/payments_orchestrator Pipeline is pending
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline failed
ci/woodpecker/push/bff Pipeline failed
Reviewed-on: #38
2025-12-09 18:53:13 +00:00
Arseni
660f689a7a Current org now sets after list gets to the state of the provider 2025-12-09 16:15:36 +03:00
Arseni
8115abb569 Organizations now load only once 2025-12-08 19:10:33 +03:00
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@@ -8,4 +8,5 @@ devtools_options.yaml
untranslated.txt untranslated.txt
generate_protos.sh generate_protos.sh
update_dep.sh update_dep.sh
.vscode/ .vscode/
.gocache/

View File

@@ -16,8 +16,7 @@ api:
CORS: CORS:
max_age: 300 max_age: 300
allowed_origins: allowed_origins:
- "http://*" - "*"
- "https://*"
allowed_methods: allowed_methods:
- "GET" - "GET"
- "POST" - "POST"

View File

@@ -35,6 +35,8 @@ class OrganizationsProvider extends ChangeNotifier {
_setResource(_resource.copyWith(isLoading: true, error: null)); _setResource(_resource.copyWith(isLoading: true, error: null));
try { try {
final orgs = await OrganizationService.list(); final orgs = await OrganizationService.list();
// keep fetched organizations so _org can resolve against them
_setResource(Resource(data: orgs, isLoading: true));
// fetch stored org // fetch stored org
String? org = await SecureStorageService.get(Constants.currentOrgKey); String? org = await SecureStorageService.get(Constants.currentOrgKey);
// check stored org availability // check stored org availability
@@ -54,6 +56,7 @@ class OrganizationsProvider extends ChangeNotifier {
_setResource(_resource.copyWith(isLoading: true, error: null)); _setResource(_resource.copyWith(isLoading: true, error: null));
try { try {
final org = await OrganizationService.loadByInvitation(invitationRef); final org = await OrganizationService.loadByInvitation(invitationRef);
_setResource(Resource(data: [org], isLoading: true));
await setCurrentOrganization(org.id); await setCurrentOrganization(org.id);
_setResource(Resource(data: [org], isLoading: false)); _setResource(Resource(data: [org], isLoading: false));
return org; return org;