polish(ext/setup): honest vault-step button labels + drop needless export
Both vault-step buttons now read "continue" -- they collect input and advance to the device step, where the SW actually performs create_vault/attach_vault (with its own busy spinner). The old "create vault" / "verify and attach" labels implied the action happened on that click, which is no longer true. Drops the unused export on vaultConfig(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -109,7 +109,7 @@ function updateStrengthUi(): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function vaultConfig(): VaultConfig {
|
function vaultConfig(): VaultConfig {
|
||||||
return {
|
return {
|
||||||
hostType: state.hostType,
|
hostType: state.hostType,
|
||||||
hostUrl: state.hostType === 'github' ? 'https://api.github.com' : state.hostUrl,
|
hostUrl: state.hostType === 'github' ? 'https://api.github.com' : state.hostUrl,
|
||||||
@@ -365,7 +365,7 @@ function renderVaultAttach(): string {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<button class="btn" id="back-btn">back</button>
|
<button class="btn" id="back-btn">back</button>
|
||||||
<button class="btn btn-primary" id="attach-btn" ${gateDisabled ? 'disabled' : ''}>next ${GLYPH_NEXT}</button>
|
<button class="btn btn-primary" id="attach-btn" ${gateDisabled ? 'disabled' : ''}>continue ${GLYPH_NEXT}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
@@ -426,7 +426,7 @@ function renderVaultNew(): string {
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<button class="btn" id="back-btn">back</button>
|
<button class="btn" id="back-btn">back</button>
|
||||||
<button class="btn btn-primary" id="create-btn" ${gateDisabled ? 'disabled' : ''}>create vault</button>
|
<button class="btn btn-primary" id="create-btn" ${gateDisabled ? 'disabled' : ''}>continue ${GLYPH_NEXT}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user