Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DLCM-Portal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DLCM
UI
DLCM-Portal
Commits
d4248279
Commit
d4248279
authored
5 years ago
by
Florent Poittevin
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove magic string duplication on aip detail form
parent
233425d8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/features/preservation/aip/components/presentationals/aip-form/aip-form.presentational.ts
+10
-6
10 additions, 6 deletions
...nents/presentationals/aip-form/aip-form.presentational.ts
with
10 additions
and
6 deletions
src/app/features/preservation/aip/components/presentationals/aip-form/aip-form.presentational.ts
+
10
−
6
View file @
d4248279
...
...
@@ -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.n
ever
"
,
"
aip.form.lastChecksumCheck.s
uccess
"
,
"
aip.form.lastChecksumCheck.f
ail
"
keyLabelN
ever
,
keyLabelS
uccess
,
keyLabelF
ail
]).
subscribe
(
translation
=>
{
lastChecksumCheckNever
=
translation
[
"
aip.form.lastChecksumCheck.n
ever
"
];
lastChecksumCheckSuccess
=
translation
[
"
aip.form.lastChecksumCheck.s
uccess
"
];
lastChecksumCheckFail
=
translation
[
"
aip.form.lastChecksumCheck.f
ail
"
];
lastChecksumCheckNever
=
translation
[
keyLabelN
ever
];
lastChecksumCheckSuccess
=
translation
[
keyLabelS
uccess
];
lastChecksumCheckFail
=
translation
[
keyLabelF
ail
];
});
if
(
isNullOrUndefined
(
checksum
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment