ISSUE-1 (#3)
Co-authored-by: stuzer05 <stuzer05@gmail.com> Reviewed-on: #3
This commit is contained in:
parent
315df79178
commit
83329c8ef7
@ -19,6 +19,10 @@ class aliasmanager extends rcube_plugin {
|
|||||||
throw new \Exception('cannot connect ot postfix db');
|
throw new \Exception('cannot connect ot postfix db');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->rcmail->task == "mail" || $this->rcmail->task == "settings") {
|
||||||
|
$this->include_stylesheet('assets/styles/app.css');
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->rcmail->task == "settings") {
|
if ($this->rcmail->task == "settings") {
|
||||||
$this->add_hook("settings_actions", [$this, "hookSettingsActions"]);
|
$this->add_hook("settings_actions", [$this, "hookSettingsActions"]);
|
||||||
$this->register_action('plugin.aliasmanager', [$this, "onShowSettingsPage"]);
|
$this->register_action('plugin.aliasmanager', [$this, "onShowSettingsPage"]);
|
||||||
@ -61,7 +65,6 @@ class aliasmanager extends rcube_plugin {
|
|||||||
*/
|
*/
|
||||||
public function settingsPageHandler() {
|
public function settingsPageHandler() {
|
||||||
$this->include_script('assets/scripts/app.js');
|
$this->include_script('assets/scripts/app.js');
|
||||||
$this->include_stylesheet('assets/styles/app.css');
|
|
||||||
|
|
||||||
$this->rcmail->output->add_label("settings_menu_label");
|
$this->rcmail->output->add_label("settings_menu_label");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user