diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index bc30dd45a1..09bbde1698 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -548,6 +548,12 @@ "shareVaultConfirmation": { "message": "Bitwarden allows you to share your vault with others by using an organization account. Would you like to visit the bitwarden.com website to learn more?" }, + "shareItem": { + "message": "Share Item" + }, + "sharedItem": { + "message": "Shared Item" + }, "learnMore": { "message": "Learn more" }, diff --git a/src/popup/app-routing.module.ts b/src/popup/app-routing.module.ts index eb432645e8..ae44e51c58 100644 --- a/src/popup/app-routing.module.ts +++ b/src/popup/app-routing.module.ts @@ -29,6 +29,7 @@ import { SyncComponent } from './settings/sync.component'; import { TabsComponent } from './tabs.component'; import { AddEditComponent } from './vault/add-edit.component'; import { AttachmentsComponent } from './vault/attachments.component'; +import { ShareComponent } from './vault/share.component'; import { CiphersComponent } from './vault/ciphers.component'; import { CurrentTabComponent } from './vault/current-tab.component'; import { GroupingsComponent } from './vault/groupings.component'; @@ -123,6 +124,12 @@ const routes: Routes = [ canActivate: [AuthGuardService], data: { state: 'edit-cipher' }, }, + { + path: 'share', + component: ShareComponent, + canActivate: [AuthGuardService], + data: { state: 'share' }, + }, { path: 'attachments', component: AttachmentsComponent, diff --git a/src/popup/app.module.ts b/src/popup/app.module.ts index 3fa4ec7606..77c30a0758 100644 --- a/src/popup/app.module.ts +++ b/src/popup/app.module.ts @@ -36,6 +36,7 @@ import { SyncComponent } from './settings/sync.component'; import { TabsComponent } from './tabs.component'; import { AddEditComponent } from './vault/add-edit.component'; import { AttachmentsComponent } from './vault/attachments.component'; +import { ShareComponent } from './vault/share.component'; import { CiphersComponent } from './vault/ciphers.component'; import { CurrentTabComponent } from './vault/current-tab.component'; import { GroupingsComponent } from './vault/groupings.component'; @@ -177,6 +178,7 @@ registerLocaleData(localeZhTw, 'zh-TW'); RegisterComponent, SearchCiphersPipe, SettingsComponent, + ShareComponent, StopClickDirective, StopPropDirective, SyncComponent, diff --git a/src/popup/vault/add-edit.component.html b/src/popup/vault/add-edit.component.html index e3308ccd63..026a242410 100644 --- a/src/popup/vault/add-edit.component.html +++ b/src/popup/vault/add-edit.component.html @@ -316,6 +316,20 @@ +