Skip to content

Commit

Permalink
AddAliasDialog should use the paid plan list
Browse files Browse the repository at this point in the history
Avoid any potential future issues with hardcoding the list here.
  • Loading branch information
paw-hub committed Feb 26, 2024
1 parent c22089f commit 6ad6c66
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/settings/mailaddress/AddAliasDialog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { lang, TranslationKey } from "../../misc/LanguageViewModel.js"
import { Dialog } from "../../gui/base/Dialog.js"
import { PlanType, TUTANOTA_MAIL_ADDRESS_DOMAINS } from "../../api/common/TutanotaConstants.js"
import { NewPaidPlans, TUTANOTA_MAIL_ADDRESS_DOMAINS } from "../../api/common/TutanotaConstants.js"
import m from "mithril"
import { SelectMailAddressForm } from "../SelectMailAddressForm.js"
import { ExpanderPanel } from "../../gui/base/Expander.js"
Expand Down Expand Up @@ -59,13 +59,7 @@ export function showAddAliasDialog(model: MailAddressTableModel, isNewPaidPlan:
Dialog.confirm(() => `${lang.get("paidEmailDomainLegacy_msg")}\n${lang.get("changePaidPlan_msg")}`).then(
async (confirmed) => {
if (confirmed) {
isNewPaidPlan = await showPlanUpgradeRequiredDialog([
PlanType.Revolutionary,
PlanType.Legend,
PlanType.Essential,
PlanType.Advanced,
PlanType.Unlimited,
])
isNewPaidPlan = await showPlanUpgradeRequiredDialog(NewPaidPlans)
}
},
)
Expand Down

0 comments on commit 6ad6c66

Please sign in to comment.