Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MD] Add rendering spanner #2050

Closed
Tracked by #1733
noCharger opened this issue Aug 2, 2022 · 0 comments
Closed
Tracked by #1733

[MD] Add rendering spanner #2050

noCharger opened this issue Aug 2, 2022 · 0 comments
Labels
multiple datasource multiple datasource project

Comments

@noCharger
Copy link
Contributor

noCharger commented Aug 2, 2022

  createCredential = async () => {
    const { savedObjects } = this.context.services;
    try {
      // TODO: Add rendering spanner https://github.com/opensearch-project/OpenSearch-Dashboards/issues/2050
      await savedObjects.client.create('credential', {
        title: this.state.credentialName,
        credentialType: this.state.credentialType,
        credentialMaterials: {
          credentialMaterialsType: this.state.credentialType,
          credentialMaterialsContent: {
            userName: this.state.userName,
            password: this.state.password,
          },
        },
      });
      this.props.history.push('');
    } catch (e) {
      // TODO: Add Toast https://github.com/opensearch-project/OpenSearch-Dashboards/issues/2049
    }
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multiple datasource multiple datasource project
Projects
None yet
Development

No branches or pull requests

1 participant