From c68aefb847b09daa0697de7684d3451e2e68ce1e Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 09 Jul 2026 23:10:23 +0000
Subject: [PATCH] =Refactor of Integrations.php to be a bit more useful with a suite of methods for create, update, delete back and forths for integrations where sharing is enabled. Also considering a single instance with a connect method to connect as the site (no user) vs connecting as an individual user - rather than recreating instances for every user.
---
assets/js/concise/TaxonomyCreator.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/assets/js/concise/TaxonomyCreator.js b/assets/js/concise/TaxonomyCreator.js
index 4a5d595..922c3a4 100644
--- a/assets/js/concise/TaxonomyCreator.js
+++ b/assets/js/concise/TaxonomyCreator.js
@@ -82,21 +82,22 @@
if (!data.name || data.name.length < 2) return false;
try {
const response = await this.createTerm(data);
-
+ let currentField = this.selector.currentField();
if (!response.success) {
// Term already exists - still add it
if (response.term && response.term.id) {
- this.selector.setMessage(true, `Using existing "${response.term.name}"`);
+ this.selector.setMessage(currentField,true, `Using existing "${response.term.name}"`);
return response.term;
}
// Other failure
- this.selector.setMessage(true, response.message || 'Creation failed', false);
+ this.selector.setMessage(currentField,true, response.message || 'Creation failed', false);
return false;
}
if (response.term?.pending) {
// Term requires approval
this.selector.setMessage(
+ currentField,
true,
`"${data.name}" submitted for approval`,
false
--
Gitblit v1.10.0