web: expressing success (#7830)

* web: expressing success

Ever see an idiom that just, I dunno, *annoyed* you?

Automated tools for the win.

* web: repetition, repetition, repetition!  [throws chair]

* web: giving the de-duplication treatment to policy mappings.

* Created a BaseStageForm with success message and canonical primary key type for for Providers, Sources, and Stages.
This commit is contained in:
Ken Sternberg
2023-12-13 07:13:28 -08:00
committed by GitHub
parent f1b6793145
commit b181c551a5
61 changed files with 184 additions and 475 deletions

View File

@ -19,11 +19,9 @@ export class CertificateKeyPairForm extends ModelForm<CertificateKeyPair, string
}
getSuccessMessage(): string {
if (this.instance) {
return msg("Successfully updated certificate-key pair.");
} else {
return msg("Successfully created certificate-key pair.");
}
return this.instance
? msg("Successfully updated certificate-key pair.")
: msg("Successfully created certificate-key pair.");
}
async send(data: CertificateKeyPair): Promise<CertificateKeyPair> {