From 736bf1eac547710a2c90dacbcdc9a27a558b8602 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Tue, 7 Jul 2026 16:33:23 -0300 Subject: [PATCH] FinanceBuddy: per-board opt-in gate on Integrations page (v0.3) --- Plugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Plugin.php b/Plugin.php index 22a49cc..84934fa 100644 --- a/Plugin.php +++ b/Plugin.php @@ -13,6 +13,17 @@ class Plugin extends Base $this->hook->on('template:layout:css', array( 'template' => 'plugins/FinanceBuddy/Asset/css/finance.css', )); + + // Per-board opt-in: a checkbox on the project's Settings -> Integrations page. Nothing + // else in the plugin renders or saves until a project manager enables it for that board. + $this->template->hook->attach('template:project:integrations', 'financeBuddy:project/integration'); + } + + public function getHelpers() + { + return array( + 'Plugin\FinanceBuddy\Helper' => array('FinanceHelper'), + ); } public function getPluginName()