UNPKG

@jupyterlab/git

Version:

A JupyterLab extension for version control using git

33 lines (32 loc) 941 B
import { Dialog } from '@jupyterlab/apputils'; import { Widget } from '@lumino/widgets'; import { GitExtension } from '../model'; import { TranslationBundle } from '@jupyterlab/translation'; /** * Interface for returned value from dialog box */ export interface IAdvancedPushFormValue { /** * The name of the remote repository to push to. */ remoteName: string; /** * Whether to use force push. */ force: boolean; } /** * A widget form with advanced push options, * can be used as a Dialog body. */ export declare class AdvancedPushForm extends Widget implements Dialog.IBodyWidget<IAdvancedPushFormValue> { constructor(trans: TranslationBundle, model: GitExtension); private createBody; private addRemoteOptions; getValue(): IAdvancedPushFormValue; private _trans; private _model; private _remoteOptionsContainer; private _radioButtons; private _forceCheckbox; }