adjustments to FAQ password links

pull/1/head
David Benqué 5 years ago
parent 5d599887cf
commit 22873fe1f7

@ -1034,7 +1034,7 @@ define([
var hasPassword = parsedHref.hashData.password; var hasPassword = parsedHref.hashData.password;
var makeFaqLink = function () { var makeFaqLink = function () {
var link = h('a', {href: '#'}, Messages.passwordFaqLink); var link = h('a', {href: '#'}, [h('i.fa.fa-question-circle'), ' ', Messages.passwordFaqLink]);
$(link).click(function () { $(link).click(function () {
common.openURL(config.origin + "/faq.html#security-pad_password"); common.openURL(config.origin + "/faq.html#security-pad_password");
}); });
@ -1103,7 +1103,7 @@ define([
if (hasPassword) { if (hasPassword) {
linkContent.push(h('div.alert.alert-primary', [ linkContent.push(h('div.alert.alert-primary', [
h('i.fa.fa-lock'), ' ', h('i.fa.fa-lock'), ' ',
Messages.share_linkPasswordAlert, ' ', Messages.share_linkPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])) ]))
}; };
@ -1180,8 +1180,8 @@ define([
// Show alert if the pad is password protected // Show alert if the pad is password protected
if (hasPassword) { if (hasPassword) {
$contactsContent.append(h('div.alert.alert-primary', [ $contactsContent.append(h('div.alert.alert-primary', [
h('i.fa.fa-lock'), ' ', h('i.fa.fa-unlock'), ' ',
Messages.share_contactPasswordAlert, ' ', Messages.share_contactPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])) ]))
}; };
@ -1211,7 +1211,7 @@ define([
if (hasPassword) { if (hasPassword) {
embedContent.push(h('div.alert.alert-primary', [ embedContent.push(h('div.alert.alert-primary', [
h('i.fa.fa-lock'), ' ', h('i.fa.fa-lock'), ' ',
Messages.share_embedPasswordAlert, ' ', Messages.share_embedPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])) ]))
}; };

Loading…
Cancel
Save