diff --git a/jslib b/jslib index 83548a6753..b7429b0c0c 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 83548a6753a974c57cb373b529a4da3ea5c3b5c0 +Subproject commit b7429b0c0cdca8783fd9fa304918ee91f23c6f76 diff --git a/src/popup/app.module.ts b/src/popup/app.module.ts index 3c69c0f615..57aa6a5507 100644 --- a/src/popup/app.module.ts +++ b/src/popup/app.module.ts @@ -40,6 +40,7 @@ import { SettingsComponent } from './settings/settings.component'; import { SyncComponent } from './settings/sync.component'; import { VaultTimeoutInputComponent } from './settings/vault-timeout-input.component'; +import { AddEditCustomFieldsComponent } from './vault/add-edit-custom-fields.component'; import { AddEditComponent } from './vault/add-edit.component'; import { AttachmentsComponent } from './vault/attachments.component'; import { CiphersComponent } from './vault/ciphers.component'; @@ -48,6 +49,7 @@ import { CurrentTabComponent } from './vault/current-tab.component'; import { GroupingsComponent } from './vault/groupings.component'; import { PasswordHistoryComponent } from './vault/password-history.component'; import { ShareComponent } from './vault/share.component'; +import { ViewCustomFieldsComponent } from './vault/view-custom-fields.component'; import { ViewComponent } from './vault/view.component'; import { EffluxDatesComponent as SendEffluxDatesComponent } from './send/efflux-dates.component'; @@ -248,6 +250,8 @@ registerLocaleData(localeZhTw, 'zh-TW'); PasswordRepromptComponent, SetPinComponent, VaultTimeoutInputComponent, + AddEditCustomFieldsComponent, + ViewCustomFieldsComponent, ], entryComponents: [], providers: [ diff --git a/src/popup/vault/add-edit-custom-fields.component.html b/src/popup/vault/add-edit-custom-fields.component.html new file mode 100644 index 0000000000..843fde75d0 --- /dev/null +++ b/src/popup/vault/add-edit-custom-fields.component.html @@ -0,0 +1,53 @@ +
+
+ {{'customFields' | i18n}} +
+
+ +
+
+ + + + + +
+ + + + + +
+ + +
+ + + +
+
+ +
+
+
+ +
+ + {{'newCustomField' | i18n}} + + + +
+
+
diff --git a/src/popup/vault/add-edit-custom-fields.component.ts b/src/popup/vault/add-edit-custom-fields.component.ts new file mode 100644 index 0000000000..ff0d983476 --- /dev/null +++ b/src/popup/vault/add-edit-custom-fields.component.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; + +import { + AddEditCustomFieldsComponent as BaseAddEditCustomFieldsComponent +} from 'jslib-angular/components/add-edit-custom-fields.component'; + +import { EventService } from 'jslib-common/abstractions/event.service'; +import { I18nService } from 'jslib-common/abstractions/i18n.service'; + +@Component({ + selector: 'app-vault-add-edit-custom-fields', + templateUrl: 'add-edit-custom-fields.component.html', +}) +export class AddEditCustomFieldsComponent extends BaseAddEditCustomFieldsComponent { + constructor(i18nService: I18nService, eventService: EventService) { + super(i18nService, eventService); + } +} diff --git a/src/popup/vault/add-edit.component.html b/src/popup/vault/add-edit.component.html index 77418d02a4..61ca37d637 100644 --- a/src/popup/vault/add-edit.component.html +++ b/src/popup/vault/add-edit.component.html @@ -324,56 +324,7 @@ -
-
- {{'customFields' | i18n}} -
-
-
-
- - - - - -
- - - -
- -
- - - -
-
- -
-
-
-
- - {{'newCustomField' | i18n}} - - - -
-
-
+
{{'ownership' | i18n}} diff --git a/src/popup/vault/view-custom-fields.component.html b/src/popup/vault/view-custom-fields.component.html new file mode 100644 index 0000000000..2987b4e130 --- /dev/null +++ b/src/popup/vault/view-custom-fields.component.html @@ -0,0 +1,37 @@ + +
+ {{'customFields' | i18n}} +
+
+
+
+ {{field.name}} +
+ {{field.value || ' '}} +
+
+ {{field.value}} + {{field.maskedValue}} +
+
+ + + {{field.value}} +
+
+ +
+
+
diff --git a/src/popup/vault/view-custom-fields.component.ts b/src/popup/vault/view-custom-fields.component.ts new file mode 100644 index 0000000000..916a1df2eb --- /dev/null +++ b/src/popup/vault/view-custom-fields.component.ts @@ -0,0 +1,19 @@ +import { + Component, +} from '@angular/core'; + +import { EventService } from 'jslib-common/abstractions/event.service'; + +import { + ViewCustomFieldsComponent as BaseViewCustomFieldsComponent +} from 'jslib-angular/components/view-custom-fields.component'; + +@Component({ + selector: 'app-vault-view-custom-fields', + templateUrl: 'view-custom-fields.component.html', +}) +export class ViewCustomFieldsComponent extends BaseViewCustomFieldsComponent { + constructor(eventService: EventService) { + super(eventService); + } +} diff --git a/src/popup/vault/view.component.html b/src/popup/vault/view.component.html index 8675bef946..c08b0cbb83 100644 --- a/src/popup/vault/view.component.html +++ b/src/popup/vault/view.component.html @@ -221,41 +221,8 @@
-
- {{'customFields' | i18n}} -
-
-
-
- {{field.name}} -
- {{field.value || ' '}} -
-
- {{field.value}} - {{field.maskedValue}} -
-
- - - {{field.value}} -
-
- -
-
+