Member Junction
    Preparing search index...

    Service for programmatically opening credential dialogs.

    // Inject the service
    constructor(private credentialDialog: CredentialDialogService) {}

    // Open dialog to create a new credential
    async createCredential() {
    const result = await this.credentialDialog.openDialog(this.viewContainerRef);
    if (result.success && result.credential) {
    console.log('Created credential:', result.credential.Name);
    }
    }

    // Open dialog with pre-selected type
    async createApiKey() {
    const result = await this.credentialDialog.openDialog(this.viewContainerRef, {
    preselectedTypeId: 'api-key-type-id'
    });
    }

    // Edit an existing credential
    async editCredential(credential: MJCredentialEntity) {
    const result = await this.credentialDialog.openDialog(this.viewContainerRef, {
    credential
    });
    }
    Index

    Constructors

    Properties

    Provider: IMetadataProvider | null = null

    The provider every read goes through.

    A providedIn: 'root' service that constructs its own RunView silently binds the global default and ignores whichever provider its host was handed. Null means "use the global default", so single-provider apps see no behaviour change.

    Accessors

    Methods

    • Opens a dialog to create a new credential with optional pre-selections. Convenience method that wraps openDialog with create-specific defaults.

      Parameters

      • viewContainerRef: ViewContainerRef

        The ViewContainerRef to attach the dialog to

      • OptionalpreselectedTypeId: string

        Optional credential type to pre-select

      • OptionalpreselectedCategoryId: string

        Optional category to pre-select

      Returns Promise<CredentialDialogResult>

      Promise resolving to the dialog result