diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index d42e3dee..9743cc28 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -32,6 +32,7 @@ import { TwoFactorOptionsComponent } from './accounts/two-factor-options.compone
import { TwoFactorComponent } from './accounts/two-factor.component';
import { AccountComponent } from './settings/account.component';
+import { ProfileComponent } from './settings/profile.component';
import { SettingsComponent } from './settings/settings.component';
import { ExportComponent } from './tools/export.component';
@@ -116,6 +117,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe';
OrganizationLayoutComponent,
PasswordGeneratorComponent,
PasswordGeneratorHistoryComponent,
+ ProfileComponent,
RegisterComponent,
SearchCiphersPipe,
SettingsComponent,
diff --git a/src/app/settings/account.component.html b/src/app/settings/account.component.html
index e05196a2..2ea92bb1 100644
--- a/src/app/settings/account.component.html
+++ b/src/app/settings/account.component.html
@@ -1,34 +1,7 @@
-
-
-
-
+
diff --git a/src/app/settings/account.component.ts b/src/app/settings/account.component.ts
index 12f5b5ed..57e8fc37 100644
--- a/src/app/settings/account.component.ts
+++ b/src/app/settings/account.component.ts
@@ -1,51 +1,7 @@
-import {
- Component,
- OnInit,
-} from '@angular/core';
-
-import { ToasterService } from 'angular2-toaster';
-import { Angulartics2 } from 'angulartics2';
-
-import { ApiService } from 'jslib/abstractions/api.service';
-import { I18nService } from 'jslib/abstractions/i18n.service';
-
-import { UpdateProfileRequest } from 'jslib/models/request/updateProfileRequest';
-
-import { ProfileResponse } from 'jslib/models/response/profileResponse';
+import { Component } from '@angular/core';
@Component({
selector: 'app-account',
templateUrl: 'account.component.html',
})
-export class AccountComponent implements OnInit {
- loading = true;
- profile: ProfileResponse;
-
- submitPromise: Promise;
-
- constructor(private apiService: ApiService, private i18nService: I18nService,
- private analytics: Angulartics2, private toasterService: ToasterService, ) { }
-
- async ngOnInit() {
- this.profile = await this.apiService.getProfile();
- this.loading = false;
- }
-
- async submit() {
- try {
- const request = new UpdateProfileRequest(this.profile.name, this.profile.masterPasswordHint);
- this.submitPromise = this.apiService.putProfile(request);
- await this.submitPromise;
- this.analytics.eventTrack.next({ action: 'Updated Profile' });
- this.toasterService.popAsync('success', null, this.i18nService.t('accountUpdated'));
- } catch { }
- }
-
- changePassword() {
-
- }
-
- changeEmail() {
-
- }
-}
+export class AccountComponent { }
diff --git a/src/app/settings/profile.component.html b/src/app/settings/profile.component.html
new file mode 100644
index 00000000..750c00d7
--- /dev/null
+++ b/src/app/settings/profile.component.html
@@ -0,0 +1,28 @@
+
+
+
+
diff --git a/src/app/settings/profile.component.ts b/src/app/settings/profile.component.ts
new file mode 100644
index 00000000..fa2a2b55
--- /dev/null
+++ b/src/app/settings/profile.component.ts
@@ -0,0 +1,43 @@
+import {
+ Component,
+ OnInit,
+} from '@angular/core';
+
+import { ToasterService } from 'angular2-toaster';
+import { Angulartics2 } from 'angulartics2';
+
+import { ApiService } from 'jslib/abstractions/api.service';
+import { I18nService } from 'jslib/abstractions/i18n.service';
+
+import { UpdateProfileRequest } from 'jslib/models/request/updateProfileRequest';
+
+import { ProfileResponse } from 'jslib/models/response/profileResponse';
+
+@Component({
+ selector: 'app-profile',
+ templateUrl: 'profile.component.html',
+})
+export class ProfileComponent implements OnInit {
+ loading = true;
+ profile: ProfileResponse;
+
+ formPromise: Promise;
+
+ constructor(private apiService: ApiService, private i18nService: I18nService,
+ private analytics: Angulartics2, private toasterService: ToasterService) { }
+
+ async ngOnInit() {
+ this.profile = await this.apiService.getProfile();
+ this.loading = false;
+ }
+
+ async submit() {
+ try {
+ const request = new UpdateProfileRequest(this.profile.name, this.profile.masterPasswordHint);
+ this.formPromise = this.apiService.putProfile(request);
+ await this.formPromise;
+ this.analytics.eventTrack.next({ action: 'Updated Profile' });
+ this.toasterService.popAsync('success', null, this.i18nService.t('accountUpdated'));
+ } catch { }
+ }
+}