forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: fixes validation bug in sign certificate form (hashicorp#19280)
* move validations to base certificate * add test
- Loading branch information
1 parent
fe7eeda
commit 85e8519
Showing
5 changed files
with
9 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import Model from '@ember-data/model'; | ||
import { FormField } from 'vault/app-types'; | ||
import PkiCertificateBaseModel from './base'; | ||
|
||
export default class PkiCertificateGenerateModel extends Model { | ||
export default class PkiCertificateGenerateModel extends PkiCertificateBaseModel { | ||
name: string; | ||
backend: string; | ||
serialNumber: string; | ||
certificate: string; | ||
formFields: FormField[]; | ||
formFieldsGroup: { | ||
[k: string]: FormField[]; | ||
}[]; | ||
validate(): ModelValidations; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import PkiCertificateBaseModel from './base'; | ||
|
||
export default class PkiCertificateGenerateModel extends PkiCertificateBaseModel {} |