web/flows: fix expiry not shown on consent stage when loading
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
f10286edf8
commit
4e18f47f28
|
@ -15,7 +15,7 @@ export class ConsentStageForm extends ModelForm<ConsentStage, string> {
|
||||||
return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({
|
return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({
|
||||||
stageUuid: pk,
|
stageUuid: pk,
|
||||||
}).then(stage => {
|
}).then(stage => {
|
||||||
this.showExpiresIn = stage.name === ConsentStageModeEnum.Expiring;
|
this.showExpiresIn = stage.mode === ConsentStageModeEnum.Expiring;
|
||||||
return stage;
|
return stage;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue