Skip to content
Snippets Groups Projects
Commit d4248279 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: remove magic string duplication on aip detail form

parent 233425d8
No related branches found
No related tags found
No related merge requests found
......@@ -79,14 +79,18 @@ export class AipFormPresentational extends SharedAbstractFormPresentational<AipE
let lastChecksumCheckSuccess = StringUtil.stringEmpty;
let lastChecksumCheckFail = StringUtil.stringEmpty;
const keyLabelNever = "aip.form.lastChecksumCheck.never";
const keyLabelSuccess = "aip.form.lastChecksumCheck.success";
const keyLabelFail = "aip.form.lastChecksumCheck.fail";
this.translate.get([
"aip.form.lastChecksumCheck.never",
"aip.form.lastChecksumCheck.success",
"aip.form.lastChecksumCheck.fail"
keyLabelNever,
keyLabelSuccess,
keyLabelFail
]).subscribe(translation => {
lastChecksumCheckNever = translation["aip.form.lastChecksumCheck.never"];
lastChecksumCheckSuccess = translation["aip.form.lastChecksumCheck.success"];
lastChecksumCheckFail = translation["aip.form.lastChecksumCheck.fail"];
lastChecksumCheckNever = translation[keyLabelNever];
lastChecksumCheckSuccess = translation[keyLabelSuccess];
lastChecksumCheckFail = translation[keyLabelFail];
});
if (isNullOrUndefined(checksum)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment