Update naming of notes and totp features

This commit is contained in:
Martin Kleinschrodt 2022-07-18 14:58:48 +02:00
parent 77a34c7611
commit bf4ca0e086
2 changed files with 13 additions and 13 deletions

View File

@ -212,7 +212,7 @@ export const FIELD_DEFS: { [t in FieldType]: FieldDef } = {
multiline: false,
icon: "totp",
get name() {
return $l("2FA Code");
return $l("One-Time Password");
},
async transform(value: string) {
return await totp(base32ToBytes(value));
@ -578,7 +578,7 @@ export const ITEM_TEMPLATES: ItemTemplate[] = [
fields: [
{
get name() {
return $l("2FA Code");
return $l("One-Time Password");
},
type: FieldType.Totp,
},

View File

@ -90,8 +90,8 @@ export class StripeProvisioner extends BasicProvisioner {
"Shared vaults",
"Encrypted file storage",
"Security Report",
"Built-in Authenticator",
"Advanced Note-Taking",
"Built-in Authenticator / One-Time Passwords",
"Rich text notes with markdown support",
],
},
[Tier.Premium]: {
@ -106,8 +106,8 @@ export class StripeProvisioner extends BasicProvisioner {
"Multi-Factor Authentication",
"Up to 1GB encrypted file storage",
"Security Report",
"Built-in Authenticator",
"Advanced Note-Taking",
"Built-in Authenticator / One-Time Passwords",
"Rich text notes with markdown support",
],
disabledFeatures: ["Shared Vaults"],
},
@ -123,8 +123,8 @@ export class StripeProvisioner extends BasicProvisioner {
"Multi-Factor Authentication",
"Up to 1GB encrypted file storage",
"Security Report",
"Built-in Authenticator",
"Advanced Note-Taking",
"Built-in Authenticator / One-Time Passwords",
"Rich text notes with markdown support",
"Share data between up to 5 users",
"Up to 5 Shared Vaults",
],
@ -142,8 +142,8 @@ export class StripeProvisioner extends BasicProvisioner {
"Multi-Factor Authentication",
"Up to 5GB encrypted file storage",
"Security Report",
"Built-in Authenticator",
"Advanced Note-Taking",
"Built-in Authenticator / One-Time Passwords",
"Rich text notes with markdown support",
"Up to 20 Shared Vaults",
"Up to 10 groups for easier permission management",
],
@ -161,8 +161,8 @@ export class StripeProvisioner extends BasicProvisioner {
"Multi-Factor Authentication",
"Up to 20GB encrypted file storage",
"Security Report",
"Built-in Authenticator",
"Advanced Note-Taking",
"Built-in Authenticator / One-Time Passwords",
"Rich text notes with markdown support",
"Unlimited Vaults",
"Unlimited Groups",
"Directory Sync / Automatic Provisioning",
@ -445,7 +445,7 @@ export class StripeProvisioner extends BasicProvisioner {
undefined,
undefined,
true,
"Advanced Note-Taking"
"Rich text notes with markdown support"
);
features.securityReport.disabled = true;
features.securityReport.message = await this._getUpgradeMessage(