diff --git a/code/gms-frontend/src/app/components/secret/secret-detail.component.html b/code/gms-frontend/src/app/components/secret/secret-detail.component.html index 8e919c51..31352866 100644 --- a/code/gms-frontend/src/app/components/secret/secret-detail.component.html +++ b/code/gms-frontend/src/app/components/secret/secret-detail.component.html @@ -245,7 +245,7 @@ value="{{ data.lastRotated | momentPipe:'yyyy.MM.DD. HH:mm:ss'}}"> } - diff --git a/code/gms-frontend/src/app/components/secret/secret-detail.component.spec.ts b/code/gms-frontend/src/app/components/secret/secret-detail.component.spec.ts index 9498716d..a0da8fa2 100644 --- a/code/gms-frontend/src/app/components/secret/secret-detail.component.spec.ts +++ b/code/gms-frontend/src/app/components/secret/secret-detail.component.spec.ts @@ -359,6 +359,7 @@ describe('SecretDetailComponent', () => { configureTestBed(); // act + component.valueDisplayed = true; component.data = secretInput; component.validateSecretLength(); @@ -376,6 +377,7 @@ describe('SecretDetailComponent', () => { configureTestBed(); // act + component.valueDisplayed = true; component.validateSecretLength(); // assert @@ -389,6 +391,7 @@ describe('SecretDetailComponent', () => { configureTestBed(); // act + component.valueDisplayed = true; component.validateSecretLength(); // assert diff --git a/code/gms-frontend/src/app/components/secret/secret-detail.component.ts b/code/gms-frontend/src/app/components/secret/secret-detail.component.ts index 2bb90895..5a3c1f73 100644 --- a/code/gms-frontend/src/app/components/secret/secret-detail.component.ts +++ b/code/gms-frontend/src/app/components/secret/secret-detail.component.ts @@ -68,7 +68,7 @@ export class SecretDetailComponent extends BaseDetailComponent { this.data.value = value; + this.valueDisplayed = true; if (this.data.type !== 'MULTIPLE_CREDENTIAL') { return; @@ -153,6 +156,7 @@ export class SecretDetailComponent extends BaseDetailComponent