1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

hostname as new login name, remove i18n string

This commit is contained in:
Kyle Spearrin
2018-04-14 21:12:04 -04:00
parent 9c44e48cc2
commit e24e992e49
2 changed files with 9 additions and 4 deletions

View File

@@ -1059,5 +1059,8 @@
}, },
"noPasswordsInList": { "noPasswordsInList": {
"message": "There are no passwords to list." "message": "There are no passwords to list."
},
"remove": {
"message": "Remove"
} }
} }

View File

@@ -22,6 +22,7 @@ import { CipherService } from 'jslib/abstractions/cipher.service';
import { I18nService } from 'jslib/abstractions/i18n.service'; import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { SyncService } from 'jslib/abstractions/sync.service'; import { SyncService } from 'jslib/abstractions/sync.service';
import { UtilsService } from 'jslib/abstractions/utils.service';
import { AutofillService } from '../../services/abstractions/autofill.service'; import { AutofillService } from '../../services/abstractions/autofill.service';
@@ -39,7 +40,7 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
identityCiphers: CipherView[]; identityCiphers: CipherView[];
loginCiphers: CipherView[]; loginCiphers: CipherView[];
url: string; url: string;
domain: string; hostname: string;
searchText: string; searchText: string;
inSidebar = false; inSidebar = false;
showLeftHeader = false; showLeftHeader = false;
@@ -51,7 +52,8 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
private analytics: Angulartics2, private toasterService: ToasterService, private analytics: Angulartics2, private toasterService: ToasterService,
private i18nService: I18nService, private router: Router, private i18nService: I18nService, private router: Router,
private ngZone: NgZone, private broadcasterService: BroadcasterService, private ngZone: NgZone, private broadcasterService: BroadcasterService,
private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService) { } private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService,
private utilsService: UtilsService) { }
async ngOnInit() { async ngOnInit() {
this.showLeftHeader = !this.platformUtilsService.isSafari(); this.showLeftHeader = !this.platformUtilsService.isSafari();
@@ -110,7 +112,7 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
} }
addCipher() { addCipher() {
this.router.navigate(['/add-cipher'], { queryParams: { name: this.domain, uri: this.url } }); this.router.navigate(['/add-cipher'], { queryParams: { name: this.hostname, uri: this.url } });
} }
viewCipher(cipher: CipherView) { viewCipher(cipher: CipherView) {
@@ -160,7 +162,7 @@ export class CurrentTabComponent implements OnInit, OnDestroy {
return; return;
} }
this.domain = this.platformUtilsService.getDomain(this.url); this.hostname = this.utilsService.getHostname(this.url);
BrowserApi.tabSendMessage(tab, { BrowserApi.tabSendMessage(tab, {
command: 'collectPageDetails', command: 'collectPageDetails',
tab: tab, tab: tab,