mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-19 12:51:08 +02:00
* build mirage handler for snapshot recovery endpoints * WIP add namespace and mount fields to read/recover form * change option to engine object * update badge color according to status and make loaded snapshot reqs within root ns * wip read reqs and view * add recovery banner and form validation * move read view into modal * tidying * organize * tests * style fixes * error handling * tests * WIP load form and update header * styling * update requests with snapshot params * style fix * yarn lock update for latest spec updates * hide dr seconday + flesh out load reqs * tests * add polling for snapshot status * disable button when not in ready state * reset errors * don't poll during tests * remove todo * test updates * fix ns select + test * remove todo * Revert "Merge branch 'copy/main/VAULT-38374/build-snapshot-manage-form' into ui/VAULT-38373/build-snapshot-load-form" This reverts commit f7cce759cda286bc7b76e84186b5497589706095, reversing changes made to 6cba99557ce6d8478f4c875579b71be4c531522e. * add breadcrumbs for load form * hide shared paths on performance secondaries * styling, tidy, mount options, engine types * lots of tidying, add manual mount input, slower polling * make read + recover requests in selected namespace * link to child ns if recovering there * test updates * remove todos * centralize recovery data values * type, state and error improvements * update FileToArrayBuffer to use HDS FileInput * error handling * allow manual input * tests * remove unneeded services * api call update * update radio fields to allow a badge for 404 message * update tests --------- Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com> Co-authored-by: claire bontempo <cbontempo@hashicorp.com>
25 lines
724 B
Handlebars
25 lines
724 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
<div class="box is-fullwidth is-marginless is-shadowless">
|
|
<Hds::Form::FileInput::Field {{on "change" this.pickedFile}} data-test-file-input as |F|>
|
|
<F.Label>{{@label}}</F.Label>
|
|
{{#if @fileHelpText}}
|
|
<F.HelperText>
|
|
{{@fileHelpText}}
|
|
</F.HelperText>
|
|
{{/if}}
|
|
{{#if @error}}
|
|
<F.Error data-test-validation-error="file">{{@error}}</F.Error>
|
|
{{/if}}
|
|
</Hds::Form::FileInput::Field>
|
|
{{#if this.filename}}
|
|
<p class="help has-text-grey">
|
|
This file is
|
|
{{this.fileSize}}
|
|
and was created on
|
|
{{date-format this.fileLastModified "MMM dd, yyyy hh:mm:ss a"}}.
|
|
</p>
|
|
{{/if}}
|
|
</div> |