mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(setup): show the setup token step in the wizard (#3442)
This commit is contained in:
1 parent
922ff5ea64
commit
3d4b2933e1
7 files changed
+144
-42
No files matched your search
@@ -399,6 +399,11 @@ function readAppPublic(value: unknown): InstanceAppPublic {
|
||||
const setup = readRecord(source.setup, 'appPublic.setup');
|
||||
const legal = readRecord(source.legal, 'appPublic.legal');
|
||||
const registration = readRecord(source.registration, 'appPublic.registration');
|
||||
const accountIdentityLocked = readOptionalBoolean(
|
||||
setup,
|
||||
'account_identity_locked',
|
||||
'appPublic.setup.account_identity_locked',
|
||||
);
|
||||
const setupTokenRequired = readOptionalBoolean(setup, 'setup_token_required', 'appPublic.setup.setup_token_required');
|
||||
return {
|
||||
branding: {
|
||||
@@ -419,6 +424,7 @@ function readAppPublic(value: unknown): InstanceAppPublic {
|
||||
setup: {
|
||||
configured: readBoolean(setup, 'configured', 'appPublic.setup.configured'),
|
||||
admin_url: readNullableAbsoluteHttpUrl(setup, 'admin_url', 'appPublic.setup.admin_url'),
|
||||
...(accountIdentityLocked === undefined ? {} : {account_identity_locked: accountIdentityLocked}),
|
||||
...(setupTokenRequired === undefined ? {} : {setup_token_required: setupTokenRequired}),
|
||||
},
|
||||
legal: {
|
||||
|
||||
Reference in new issue
Block a user