remove spaces in password messages

- space between icon and text is now a margin
pull/1/head
David Benqué 5 years ago
parent 9b5c3878b1
commit be40254f1a

@ -1018,7 +1018,7 @@ define([
var makeFaqLink = function () { var makeFaqLink = function () {
var link = h('span', [ var link = h('span', [
h('i.fa.fa-question-circle'), ' ', // XXX remove and make it a margin h('i.fa.fa-question-circle'),
h('a', {href: '#'}, Messages.passwordFaqLink) h('a', {href: '#'}, Messages.passwordFaqLink)
]); ]);
$(link).click(function () { $(link).click(function () {
@ -1033,7 +1033,6 @@ define([
var rights = h('div.msg.cp-inline-radio-group', [ var rights = h('div.msg.cp-inline-radio-group', [
h('label', Messages.share_linkAccess), h('label', Messages.share_linkAccess),
h('br'),
h('div.radio-group',[ h('div.radio-group',[
UI.createRadio('accessRights', 'cp-share-editable-false', UI.createRadio('accessRights', 'cp-share-editable-false',
Messages.share_linkView, true, { mark: {tabindex:1} }), Messages.share_linkView, true, { mark: {tabindex:1} }),
@ -1087,7 +1086,7 @@ define([
// Show alert if the pad is password protected // Show alert if the pad is password protected
if (hasPassword) { if (hasPassword) {
linkContent.push(h('div.alert.alert-primary', [ linkContent.push(h('div.alert.alert-primary', [
h('i.fa.fa-lock'), ' ', // XXX remove and make it a margin h('i.fa.fa-lock'),
Messages.share_linkPasswordAlert, h('br'), Messages.share_linkPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])); ]));
@ -1170,7 +1169,7 @@ 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-unlock'), ' ', // XXX remove and make it a margin h('i.fa.fa-unlock'),
Messages.share_contactPasswordAlert, h('br'), Messages.share_contactPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])); ]));
@ -1300,7 +1299,6 @@ define([
return modal; return modal;
}; };
// XXX add password messages to file share
UIElements.createFileShareModal = function (config) { UIElements.createFileShareModal = function (config) {
var origin = config.origin; var origin = config.origin;
var pathname = config.pathname; var pathname = config.pathname;
@ -1317,7 +1315,7 @@ define([
var makeFaqLink = function () { var makeFaqLink = function () {
var link = h('span', [ var link = h('span', [
h('i.fa.fa-question-circle'), ' ', // XXX remove and make it a margin h('i.fa.fa-question-circle'),
h('a', {href: '#'}, Messages.passwordFaqLink) h('a', {href: '#'}, Messages.passwordFaqLink)
]); ]);
$(link).click(function () { $(link).click(function () {
@ -1343,7 +1341,7 @@ define([
// Show alert if the pad is password protected // Show alert if the pad is password protected
if (hasPassword) { if (hasPassword) {
linkContent.push(h('div.alert.alert-primary', [ linkContent.push(h('div.alert.alert-primary', [
h('i.fa.fa-lock'), ' ', // XXX remove and make it a margin h('i.fa.fa-lock'),
Messages.share_linkPasswordAlert, h('br'), Messages.share_linkPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])); ]));
@ -1392,7 +1390,7 @@ 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-unlock'), ' ', // XXX remove and make it a margin h('i.fa.fa-unlock'),
Messages.share_contactPasswordAlert, h('br'), Messages.share_contactPasswordAlert, h('br'),
makeFaqLink() makeFaqLink()
])); ]));

Loading…
Cancel
Save