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:
@ -26,11 +26,9 @@ export class TokenForm extends ModelForm<Token, string> {
|
||||
}
|
||||
|
||||
getSuccessMessage(): string {
|
||||
if (this.instance) {
|
||||
return msg("Successfully updated token.");
|
||||
} else {
|
||||
return msg("Successfully created token.");
|
||||
}
|
||||
return this.instance
|
||||
? msg("Successfully updated token.")
|
||||
: msg("Successfully created token.");
|
||||
}
|
||||
|
||||
async send(data: Token): Promise<Token> {
|
||||
|
Reference in New Issue
Block a user