Remove rl.showScreenPopup in favour of AbstractViewPopup.showModal

This commit is contained in:
the-djmaze 2022-02-07 15:20:39 +01:00
parent 649f74fc51
commit f6400b6da2
5 changed files with 17 additions and 12 deletions

View file

@ -5,6 +5,15 @@ class Plugin extends \RainLoop\Plugins\AbstractPlugin
}
```
JavaScript
```javascript
class PluginPopupView extends rl.pluginPopupView
{
}
PluginPopupView.showModal();
```
# Hooks
```php

View file

@ -117,7 +117,7 @@ class TwoFactorAuthSettings
}
testTwoFactor() {
rl.showPluginPopup(TwoFactorAuthTestPopupView, [this.twoFactorTested]);
TwoFactorAuthTestPopupView.showModal([this.twoFactorTested]);
}
clearTwoFactor() {