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

    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