Renamed closeCommand() to close() because it has no command feature anymore

This commit is contained in:
the-djmaze 2022-03-04 09:21:24 +01:00
parent 7f29f362f5
commit fe0f6af9f4
38 changed files with 59 additions and 57 deletions

View file

@ -28,7 +28,7 @@ class PluginPopupView extends rl.pluginPopupView
afterShow() {}
// Happens when user hits Escape or Close key
// return false to prevent closing, use closeCommand() manually
// return false to prevent closing, use close() manually
onClose() {}
// Happens before animation transitionend
onHide() {}

View file

@ -7,9 +7,9 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'Two Factor Authentication',
VERSION = '2.13',
VERSION = '2.13.2',
RELEASE = '2022-02-28',
REQUIRED = '2.13.0',
REQUIRED = '2.13.2',
CATEGORY = 'Login',
DESCRIPTION = 'Provides support for TOTP 2FA';

View file

@ -1,5 +1,5 @@
<header>
<a class="close" href="#" data-bind="command: closeCommand">×</a>
<a class="close" href="#" data-bind="click: close">×</a>
<h3 data-i18n="POPUPS_TWO_FACTOR_TEST/TITLE_TEST_CODE"></h3>
</header>
<div class="modal-body form-horizontal">

View file

@ -73,7 +73,7 @@
<span data-i18n="POPUPS_TWO_FACTOR_CFG/BUTTON_ACTIVATE"></span>
</a>
<!--
<a class="btn" data-bind="command: closeCommand, visible: viewEnable()">
<a class="btn" data-bind="click: close, visible: viewEnable()">
<i class="icon-ok" ></i>
<span data-i18n="GLOBAL/DONE"></span>
</a>