browser version of 287 issue

added condition when badge should set text based on setting
This commit is contained in:
Vlad 2021-02-22 01:35:14 +03:00
parent 2ac9f92267
commit eb59c9e692
48 changed files with 287 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit b0ae1bfa4cb3bc2642e1ecb14c6c1f0eceb06cb6
Subproject commit d22e12db80719593ebe2915295728d6afffdd315

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Значкі вэб-сайтаў паказваюцца з кожным элементам у вашым сховішчы."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Імя ўладальніка карткі"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Иконките на сайтовете са разпознаваемо изображение за всеки запис в трезора."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Име на притежателя на картата"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Les icones del lloc web proporcionen una imatge que es pot reconèixer al costat de cada element d'inici de sessió a la vostra caixa forta."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Nom del titular de la targeta"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Ikonky webových stránek zobrazí snadno rozeznatelný obrázek vedle každé položky ve vašem trezoru."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Jméno držitele karty"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Webikoner vises som et genkendeligt billede ved siden af hvert loginelement i din boks."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kortindehaverens navn"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website-Symbole zeigen ein erkennbares Bild neben jedem Login in deinem Tresor."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Name des Karteninhabers"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Τα εικονίδια ιστοσελίδων παρέχουν μια αναγνωρίσιμη εικόνα δίπλα σε κάθε στοιχείο σύνδεσης της λίστας σας."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Όνομα κατόχου της κάρτας"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provide a recognizable image next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder Name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website icons provide a recognisable image next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website icons provide a recognisable image next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Los iconos del sitio web añaden una imagen reconocible al lado de cada entrada de tu caja fuerte."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Nombre en la tarjeta"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Ikoonid aitavad hoidlas olevaid veebilehti paremini ära tunda."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kaardiomaniku nimi"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "آیکون های وبسایت یک تصویر قابل تشخیص در کنار هر داده ورودی ارائه میدهد."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "نام صاحب کارت"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Kirjautumistietojen vieressä näytettävät sivustojen kuvakkeet helpottavat kohteiden tunnistusta."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kortinhaltijan nimi"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Les icônes des sites web permettent d'avoir une icône reconnaissable à côté de chaque identifiant dans votre coffre."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Nom du titulaire de la carte"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "יכולת הצג אייקונים-של-האתר מאפשרת הצגה של תמונה או אייקון מוכר ליד פרטי הכניסה שבכספת שלך."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "שם בעל הכרטיס"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provides a recognizable icon next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder Name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provides a recognizable icon next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Ime vlasnika kartice"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "A webhelyek ikonjai felismerhető ikonként jelennek meg a széf összes eleme mellett."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kártyatulajdonos neve"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Ikon Situs Web menyediakan gambar yang dikenali di sebelah item info masuk di brankas Anda."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Nama Pemilik Kartu"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Le icone del sito web forniscono un'immagine riconoscibile accanto a ogni elemento di login nella tuo portachiavi."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Titolare della Carta"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "保管庫のアイテム毎にウェブサイトのアイコンを表示します。"
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "カードの名義人名"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "웹 사이트 아이콘을 사용하면 보관함 각 항목 옆에 이미지를 보여줍니다."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "카드 소유자 이름"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Vietņu Ikonas nodrošina atpazīstamu attēlu pie katra piekļuves vienuma jūsu seifā."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kartes Īpašnieka Vārds"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "വെബ്സൈറ്റ് ഐക്കണുകൾ തങ്ങളുടെ വാൾട്ടിലെ ലോഗിൻ ഇന്നതിന്റ്റെ അടുത്തായി തിരിച്ചറിയുന്ന ഒരു ചിത്രം ഉൾപ്പെടുത്തുന്നു."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "കാർഡ് ഉടമയുടെ പേര്"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Nettstedsikoner sørger for et gjenkjennelig bilde ved siden av hver innloggingsgjenstand i hvelvet ditt."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kortholderens navn"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Websitepictogrammen geven een herkenbare afbeelding naast elk item in je kluis weer."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Naam kaarthouder"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Wyświetlaj rozpoznawalną ikonę serwisu obok danych logowania w sejfie."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Właściciel karty"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "O ícone do site fornece um ícone reconhecível ao lado de cada credencial no seu cofre."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Titular do Cartão"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Os ícones de websites providenciam uma imagem reconhecível ao lado de cada item de credencial no seu cofre."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Titular do cartão"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Iconurile saiturilor oferă o imagine identificabilă lângă fiecare element de conectare din seiful dvs."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Deținător card"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Значки веб-сайтов отображаются рядом с каждым элементом в вашем хранилище."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Имя владельца карты"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provide a recognizable image next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder Name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Ikony stránok poskytujú rozoznateľný obrázok vedľa každého prihlasovacieho údaju vo webovom trezore."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Meno vlastníka karty"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provide a recognizable image next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder Name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Иконе веб сајта пружају препознатљиву слику поред сваке пријаву у сефу."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Име Власника Картице"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Webbplatsikoner ger en igenkännbar ikon bredvid varje inloggningsobjekt i ditt valv."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kortinnehavarens namn"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Website Icons provides a recognizable icon next to each login item in your vault."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Cardholder Name"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Web Sitesi Simgeleri, kasanızdaki her giriş bilgisinin yanında o siteyi tanımanıza yardımcı olacak bir görüntü verir."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Kart Sahibinin Adı"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Впізнавані піктограми вебсайтів додаються біля кожного запису вашого сховища."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Ім'я власника картки"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "Biểu tượng trang web cung cấp các biểu tượng nhận dạng trang web bên cạnh mỗi mục đăng nhập trong kho mật khẩu của bạn."
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "Tên chủ thẻ"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "在您密码库的每个登录项目旁边显示一个可识别的图标。"
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "持卡人姓名"
},

View File

@ -942,6 +942,12 @@
"disableFaviconDesc": {
"message": "在您密碼庫的每個登入資料旁顯示一個可辨識圖示。"
},
"disableBadgeCounter": {
"message": "Disable Badge Counter"
},
"disableBadgeCounterDesc": {
"message": "Badge counter provides info on how much logins you have for this page."
},
"cardholderName": {
"message": "持卡人姓名"
},

View File

@ -543,8 +543,12 @@ export default class MainBackground {
}
}
this.browserActionSetBadgeText(theText, tabId);
this.sidebarActionSetBadgeText(theText, tabId);
const disableBadgeCounter = await this.storageService.get<boolean>(ConstantsService.disableBadgeCounterKey);
if (!disableBadgeCounter) {
this.sidebarActionSetBadgeText(theText, tabId);
this.browserActionSetBadgeText(theText, tabId);
}
return;
} catch { }
}

View File

@ -86,9 +86,12 @@ export function initFactory(platformUtilsService: PlatformUtilsService, i18nServ
}
if (BrowserApi.getBackgroundPage() != null) {
stateService.save(ConstantsService.disableFaviconKey,
await stateService.save(ConstantsService.disableFaviconKey,
await storageService.get<boolean>(ConstantsService.disableFaviconKey));
await stateService.save(ConstantsService.disableBadgeCounterKey,
await storageService.get<boolean>(ConstantsService.disableBadgeCounterKey));
let theme = await storageService.get<string>(ConstantsService.themeKey);
if (theme == null) {
theme = platformUtilsService.getDefaultSystemTheme();

View File

@ -115,6 +115,15 @@
</div>
<div class="box-footer">{{'disableFaviconDesc' | i18n}}</div>
</div>
<div class="box">
<div class="box-content">
<div class="box-content-row box-content-row-checkbox" appBoxRow>
<label for="badge">{{'disableBadgeCounter' | i18n}}</label>
<input id="badge" type="checkbox" (change)="updateDisableBadgeCounter()" [(ngModel)]="disableBadgeCounter">
</div>
</div>
<div class="box-footer">{{'disableBadgeCounterDesc' | i18n}}</div>
</div>
<div class="box">
<div class="box-content">
<div class="box-content-row" appBoxRow>

View File

@ -22,6 +22,7 @@ import { ConstantsService } from 'jslib/services/constants.service';
})
export class OptionsComponent implements OnInit {
disableFavicon = false;
disableBadgeCounter = false;
enableAutoFillOnPageLoad = false;
disableAutoTotpCopy = false;
disableContextMenuItem = false;
@ -86,6 +87,8 @@ export class OptionsComponent implements OnInit {
this.disableFavicon = await this.storageService.get<boolean>(ConstantsService.disableFaviconKey);
this.disableBadgeCounter = await this.storageService.get<boolean>(ConstantsService.disableBadgeCounterKey);
this.theme = await this.storageService.get<string>(ConstantsService.themeKey);
const defaultUriMatch = await this.storageService.get<UriMatchType>(ConstantsService.defaultUriMatch);
@ -129,6 +132,12 @@ export class OptionsComponent implements OnInit {
this.callAnalytics('Favicon', !this.disableFavicon);
}
async updateDisableBadgeCounter() {
await this.storageService.save(ConstantsService.disableBadgeCounterKey, this.disableBadgeCounter);
await this.stateService.save(ConstantsService.disableBadgeCounterKey, this.disableBadgeCounter);
this.callAnalytics('Badge Counter', !this.disableBadgeCounter);
}
async updateShowCards() {
await this.storageService.save(ConstantsService.dontShowCardsCurrentTab, this.dontShowCards);
await this.stateService.save(ConstantsService.dontShowCardsCurrentTab, this.dontShowCards);