Commit 3faacc07 authored by Romain Tartière's avatar Romain Tartière
Browse files

Update wording

parent 6ef19c92
Pipeline #312542602 passed with stage
in 7 minutes and 39 seconds
......@@ -105,7 +105,7 @@
class="secret-list-item"
id="secret-list-item--{{ secret.id }}"
[class.secret-list-item--is-active]="secret.id === secretManaged"
[class.secret-list-item--is-leaked]="secret.is_leaked === true"
[class.secret-list-item--is-change-requested]="secret.is_change_requested === true"
>
<secret-row
[secret]="secret"
......
......@@ -319,7 +319,7 @@ $placeholder-height: 40vh;
}
}
&--is-leaked {
&--is-change-requested {
background-color: #e6d0d0;
&:hover {
background-color: #fcf4f4;
......
......@@ -84,7 +84,7 @@ describe("ListReducer", () => {
id: 1,
data: {},
secret_through_set: [],
is_leaked: false
is_change_requested: false
};
const startState: fromList.IListState = {
...fromList.initialListState,
......
<div class="secret">
<div class="leaked" *ngIf="form.value.is_leaked">Your administrator has requested you change this password because it was shared with an user who does not have access to it anymore. Changing this password will prevent this former user to sign-in on the system using on off-line copy of the password.</div>
<div class="change-requested" *ngIf="form.value.is_change_requested">Your administrator has requested you change this password because it was shared with an user who does not have access to it anymore. Changing this password will prevent this former user to sign-in on the system using on off-line copy of the password.</div>
<form novalidate [ngrxFormState]="form" (submit)="onSubmit()">
<ul *ngIf="errorMessage" class="form-field__error-list">
......
......@@ -55,7 +55,7 @@ export class SecretFormEffects {
username: secret.data.username || "",
url: secret.data.url || "",
password: "",
is_leaked: secret.is_leaked || false,
is_change_requested: secret.is_change_requested || false,
notes: "",
searchGroups: ""
};
......
......@@ -22,7 +22,7 @@ export interface ISecretForm {
username: string;
url: string;
password: string;
is_leaked: boolean;
is_change_requested: boolean;
notes: string;
}
......@@ -37,7 +37,7 @@ export const initialFormState = validateAndUpdateFormState(
username: "",
url: "",
password: "",
is_leaked: false,
is_change_requested: false,
notes: ""
})
);
......
......@@ -116,7 +116,7 @@ describe("Secret Form", () => {
username: "",
url: "",
password: "",
is_leaked: false,
is_change_requested: false,
notes: "",
searchGroups: ""
},
......
......@@ -187,7 +187,7 @@
font-size: 14px;
line-height: 19px;
}
.leaked {
.change-requested {
color: #B92855;
font-size: 0.8em;
font-weight: 600;
......
......@@ -23,7 +23,7 @@ describe("SecretReducer", () => {
id: 1,
data: {},
secret_through_set: [],
is_leaked: false
is_change_requested: false
};
const createAction = new SecretActions.RemoveSecretAction(
......@@ -57,7 +57,7 @@ describe("SecretReducer", () => {
type: "test",
data: {},
secret_through_set: [],
is_leaked: false
is_change_requested: false
},
{
id: 2,
......@@ -65,7 +65,7 @@ describe("SecretReducer", () => {
type: "test",
data: {},
secret_through_set: [],
is_leaked: false
is_change_requested: false
}
];
......
......@@ -22,5 +22,5 @@ export const testSecret = {
}
],
type: "website",
is_leaked: false
is_change_requested: false
};
......@@ -133,7 +133,7 @@ export interface ISecretThroughGroup extends ISecretThrough {
export interface ISecret {
id: number;
name: string;
is_leaked: boolean;
is_change_requested: boolean;
/** Classification of secret, for example a website or note. */
type: string;
/** Unencrypted data for less sensative infomation. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment