Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76377d30 authored by Ronak Patel's avatar Ronak Patel
Browse files

added condition

parent dd63e6e2
Loading
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
$(document).ready(function () {
	$("#two-factor-auth .settings-hint").each(function(index) {
		if(index === 0){
			$(this).removeClass('hidden');
		}else{
		if(index > 0){
			$(this).remove();
		} 
	});
	$('#two-factor-auth > a.icon-info').attr('href','https://doc.e.foundation/support-topics/two-factor-authentication#using-an-application-password-for-the-eos-account-manager');
	let content_ = '<p class="margin-top-10 settings-hint">' + t('settings', "<b>Note:</b> You'll need to create a new <a class=\"text-color-active\" href=\"https://doc.e.foundation/support-topics/two-factor-authentication#using-an-application-password-for-the-eos-account-manager\">application password</a> to set your account within /e/OS. Additionally, you need to <a class=\"text-color-active\" href=\"https://doc.e.foundation/support-topics/two-factor-authentication#manually-setup-mail-application\">provide your main account password to /e/OS Mail</a>.") + '</p>';
	let content_ = '<p class="margin-top-10 settings-hint hidden">' + t('settings', "<b>Note:</b> You'll need to create a new <a class=\"text-color-active\" href=\"https://doc.e.foundation/support-topics/two-factor-authentication#using-an-application-password-for-the-eos-account-manager\">application password</a> to set your account within /e/OS. Additionally, you need to <a class=\"text-color-active\" href=\"https://doc.e.foundation/support-topics/two-factor-authentication#manually-setup-mail-application\">provide your main account password to /e/OS Mail</a>.") + '</p>';
	$(content_).insertAfter("#two-factor-auth p.settings-hint");
	$('.settings-hint').removeClass('hidden');
})