Merge pull request 'Stage deploy: device count fix' (#149) from dev into stage
Stage — Build, push & deploy to marketing-stage / deploy-stage (push) Successful in 9m8s
Stage — Build, push & deploy to marketing-stage / deploy-stage (push) Successful in 9m8s
This commit was merged in pull request #149.
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(
|
||||
"",
|
||||
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")
|
||||
)
|
||||
) +
|
||||
|
||||
@@ -103,6 +103,13 @@ fn main() -> Void {
|
||||
}
|
||||
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 = '';
|
||||
if (createdAt) {
|
||||
var d = new Date(createdAt);
|
||||
|
||||
Reference in New Issue
Block a user