This commit is contained in:
2021-03-12 21:54:48 +00:00
parent be489f0b8a
commit a84d3a540c
2 changed files with 20 additions and 14 deletions

View File

@@ -1058,12 +1058,14 @@ function generateMenu(vm) {
vm: vm vm: vm
}); });
menuOptions.menuItems.push({ if (vm.obj.twoFactorEnabled) {
title: "AuthDisableTwoFactor", menuOptions.menuItems.push({
icon: "$ayiLock", title: "AuthDisableTwoFactor",
key: FORM_KEY + ":disable2fa", icon: "$ayiLock",
vm: vm key: FORM_KEY + ":disable2fa",
}); vm: vm
});
}
} }
} }
@@ -1130,7 +1132,8 @@ async function fetchTranslatedText(vm) {
"UserPhone2", "UserPhone2",
"UserPageAddress", "UserPageAddress",
"SendPasswordResetCode", "SendPasswordResetCode",
"AuthDisableTwoFactor" "AuthDisableTwoFactor",
"AuthTwoFactorDisabled"
]); ]);
} }

View File

@@ -1067,12 +1067,14 @@ function generateMenu(vm) {
vm: vm vm: vm
}); });
menuOptions.menuItems.push({ if (vm.obj.twoFactorEnabled) {
title: "AuthDisableTwoFactor", menuOptions.menuItems.push({
icon: "$ayiLock", title: "AuthDisableTwoFactor",
key: FORM_KEY + ":disable2fa", icon: "$ayiLock",
vm: vm key: FORM_KEY + ":disable2fa",
}); vm: vm
});
}
} }
} }
menuOptions.menuItems.push({ divider: true, inset: false }); menuOptions.menuItems.push({ divider: true, inset: false });
@@ -1137,7 +1139,8 @@ async function fetchTranslatedText(vm) {
"UserPhone2", "UserPhone2",
"UserPageAddress", "UserPageAddress",
"SendPasswordResetCode", "SendPasswordResetCode",
"AuthDisableTwoFactor" "AuthDisableTwoFactor",
"AuthTwoFactorDisabled"
]); ]);
} }