mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
CST-6153 updated lint error
This commit is contained in:
@@ -219,7 +219,7 @@ describe('ProfilePageComponent', () => {
|
|||||||
component.setCurrentPasswordValue('current-password');
|
component.setCurrentPasswordValue('current-password');
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
{ "op": "add", "path": "/password", "value": { "password": "testest", "challenge": "current-password" } }
|
{ 'op': 'add', 'path': '/password', 'value': { 'password': 'testest', 'challenge': 'current-password' } }
|
||||||
];
|
];
|
||||||
result = component.updateSecurity();
|
result = component.updateSecurity();
|
||||||
});
|
});
|
||||||
@@ -243,7 +243,7 @@ describe('ProfilePageComponent', () => {
|
|||||||
component.setInvalid(false);
|
component.setInvalid(false);
|
||||||
component.setCurrentPasswordValue('current-password');
|
component.setCurrentPasswordValue('current-password');
|
||||||
operations = [
|
operations = [
|
||||||
{ "op": "add", "path": "/password", "value": {"password": "testest", "challenge": "current-password" }}
|
{ 'op': 'add', 'path': '/password', 'value': {'password': 'testest', 'challenge': 'current-password' }}
|
||||||
];
|
];
|
||||||
result = component.updateSecurity();
|
result = component.updateSecurity();
|
||||||
epersonService.patch(user, operations).subscribe((response) => {
|
epersonService.patch(user, operations).subscribe((response) => {
|
||||||
|
@@ -147,7 +147,7 @@ export class ProfilePageComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
if (!this.invalidSecurity && passEntered) {
|
if (!this.invalidSecurity && passEntered) {
|
||||||
const operations = [
|
const operations = [
|
||||||
{ "op": "add", "path": "/password", "value": { "password": this.password, "challenge": this.currentPassword } }
|
{ 'op': 'add', 'path': '/password', 'value': { 'password': this.password, 'challenge': this.currentPassword } }
|
||||||
] as Operation[];
|
] as Operation[];
|
||||||
this.epersonService.patch(this.currentUser, operations).pipe(getFirstCompletedRemoteData()).subscribe((response: RemoteData<EPerson>) => {
|
this.epersonService.patch(this.currentUser, operations).pipe(getFirstCompletedRemoteData()).subscribe((response: RemoteData<EPerson>) => {
|
||||||
if (response.hasSucceeded) {
|
if (response.hasSucceeded) {
|
||||||
|
Reference in New Issue
Block a user