Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dmp
OpenAIRE-EUDAT-DMP-service-pilot
Commits
52c26cd8
Commit
52c26cd8
authored
Sep 09, 2021
by
Kristian Ntavidi
Browse files
Admin Dataset editor guard fix.
parent
0780c629
Changes
2
Hide whitespace changes
Inline
Side-by-side
dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.html
View file @
52c26cd8
...
...
@@ -87,10 +87,10 @@
{{'DMP-EDITOR.STEPPER.PREVIOUS' | translate}}
</button>
<button
mat-button
class=
"navigate-btn ml-3"
[@
next_btn
]
(click)=
"validateStep(stepper.selectedIndex);stepper.next();"
*ngIf=
"stepper.selectedIndex != (steps.length-1)"
[ngClass]=
"{'navigate-btn-disabled': !isStepCompleted(stepper.selectedIndex)}"
>
[@
next_btn
]
(click)=
"validateStep(stepper.selectedIndex);stepper.next();"
*ngIf=
"stepper.selectedIndex != (steps.length-1)"
[ngClass]=
"{'navigate-btn-disabled': !isStepCompleted(stepper.selectedIndex)}"
>
<mat-icon
style=
"font-size: 1.66em;"
>
navigate_next
</mat-icon>
{{'DMP-EDITOR.STEPPER.NEXT' | translate}}
</button>
...
...
dmp-frontend/src/app/ui/admin/dataset-profile/editor/dataset-profile-editor.component.ts
View file @
52c26cd8
...
...
@@ -471,6 +471,7 @@ export class DatasetProfileEditorComponent extends CheckDeactivateBaseComponent
this
.
datasetProfileService
.
updateForm
(
this
.
datasetProfileId
,
this
.
form
.
getRawValue
())
.
pipe
(
takeUntil
(
this
.
_destroyed
))
.
subscribe
(()
=>
{
this
.
form
.
markAsPristine
();
//deactivate guard
this
.
router
.
navigate
([
'
/dataset-profiles
'
]);
this
.
uiNotificationService
.
snackBarNotification
(
this
.
language
.
instant
(
'
DATASET-PROFILE-EDITOR.FEEDBACK-MESSAGES.SAVE-SUCCESS
'
),
SnackBarNotificationLevel
.
Success
)
},
error
=>
this
.
onCallbackError
(
error
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment