Fix device count: show 1 for free plan, 2 for professional/founding
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 1m38s
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 1m38s
This commit is contained in:
+1
-1
@@ -818,7 +818,7 @@ fn account_devices_card() -> String {
|
|||||||
el_div("class=\"device-icon\"", account_signin_svg_device()) +
|
el_div("class=\"device-icon\"", account_signin_svg_device()) +
|
||||||
el_div(
|
el_div(
|
||||||
"",
|
"",
|
||||||
el_p("class=\"devices-count\"", "2 devices included with your plan") +
|
el_p("class=\"devices-count\" id=\"devices-count-el\"", "2 devices included with your plan") +
|
||||||
el_p("class=\"devices-sub\"", "Currently: Setup at launch")
|
el_p("class=\"devices-sub\"", "Currently: Setup at launch")
|
||||||
)
|
)
|
||||||
) +
|
) +
|
||||||
|
|||||||
@@ -103,6 +103,13 @@ fn main() -> Void {
|
|||||||
}
|
}
|
||||||
setHtml('plan-billing-note-el', billingNote);
|
setHtml('plan-billing-note-el', billingNote);
|
||||||
|
|
||||||
|
var devicesEl = document.getElementById('devices-count-el');
|
||||||
|
if (devicesEl) {
|
||||||
|
devicesEl.textContent = (plan === 'free')
|
||||||
|
? '1 device included with your plan'
|
||||||
|
: '2 devices included with your plan';
|
||||||
|
}
|
||||||
|
|
||||||
var meta = '';
|
var meta = '';
|
||||||
if (createdAt) {
|
if (createdAt) {
|
||||||
var d = new Date(createdAt);
|
var d = new Date(createdAt);
|
||||||
|
|||||||
Reference in New Issue
Block a user