v1.0.22: refresh projects/users when API token is saved
Previously onPropertyInspectorDidAppear fired once on PI open — if the token wasn't saved yet (first-time setup), the dropdown stayed empty forever. Now saving credentials sends a refresh event to the plugin, which re-fetches and repopulates projects and names immediately. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -195,6 +195,9 @@
|
||||
};
|
||||
$PI.setGlobalSettings(creds);
|
||||
setCredStatus("Credentials saved.", "ok");
|
||||
if (creds.notionToken) {
|
||||
$PI.sendToPlugin({ event: "refresh", notionToken: creds.notionToken });
|
||||
}
|
||||
}
|
||||
|
||||
function populateUsers(users, savedUserId) {
|
||||
|
||||
Reference in New Issue
Block a user