{
- async componentDidMount() {}
-
- componentDidUpdate() {}
-
render() {
return (
-
+
+ {(disabled) => }
+
);
}
-
- slackChannelChangeHandler = (value: any) => {
- console.log(value);
- };
}
export default withMobXProviderContext(Test);
diff --git a/grafana-plugin/src/state/rootBaseStore.ts b/grafana-plugin/src/state/rootBaseStore.ts
index ce4ebb1d..4062749b 100644
--- a/grafana-plugin/src/state/rootBaseStore.ts
+++ b/grafana-plugin/src/state/rootBaseStore.ts
@@ -36,8 +36,9 @@ import {
getPluginSyncStatus,
installPlugin,
startPluginSync,
- SYNC_STATUS_RETRY_LIMIT, syncStatusDelay,
- updateGrafanaToken
+ SYNC_STATUS_RETRY_LIMIT,
+ syncStatusDelay,
+ updateGrafanaToken,
} from './plugin';
import { UserAction } from './userAction';
@@ -190,28 +191,29 @@ export class RootBaseStore {
}
async waitForSyncStatus(retryCount = 0) {
-
if (retryCount > SYNC_STATUS_RETRY_LIMIT) {
this.retrySync = true;
return;
}
- getPluginSyncStatus().then((get_sync_response) => {
- if (get_sync_response.hasOwnProperty('token_ok')) {
- this.finishSync(get_sync_response);
- } else {
- syncStatusDelay(retryCount + 1)
- .then(() => this.waitForSyncStatus(retryCount + 1))
- }
- }).catch((e) => {
+ getPluginSyncStatus()
+ .then((get_sync_response) => {
+ if (get_sync_response.hasOwnProperty('token_ok')) {
+ this.finishSync(get_sync_response);
+ } else {
+ syncStatusDelay(retryCount + 1).then(() => this.waitForSyncStatus(retryCount + 1));
+ }
+ })
+ .catch((e) => {
this.handleSyncException(e);
});
-
}
async setupPlugin(meta: AppPluginMeta) {
this.resetStatusToDefault();
+ console.log(meta);
+
if (!meta.jsonData?.onCallApiUrl) {
this.pluginIsInitialized = false;
return;