Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} />
{/* list of available subtitles? */}
<div>
<div>
<div>{"Version "}<b>{version}</b></div>
<div>{"Duration "}<b>{formatTime(duration)}</b></div>
<div>{"Number of events "}<b>{events.length}</b></div>
</div>
</div>
<div style="{{textAlign:">
<div>
<button>
</button><button disabled="{!canSave}">
</button></div>
</div>
{!canSave &&
{"The current user is not allowed to modify this Codecast."}
}
{save &&
<div>
{save.state === 'pending' &&
<div>
{"Saving, please wait…"}
</div>}
{save.state === 'failure' &&
<div>
</div></div>
<p></p>
<p>Submit the spec to begin loading data into Druid.</p>
<div>
{!isEmptyIngestionSpec(spec) && (
<button>
)}
</button><button disabled="{submitting}">
</button></div>
);
}
? <div>
<textarea value="{subtitlesText}" style="{{width:" rows="{7}"> <div className='buttons-bar'>
<Files onChange={this._fileChanged} accepts={this._fileAccepts} style={{display: 'inline-block'}}><Button icon={IconNames.UPLOAD}>{"Load"}</Button></Files>
<Button onClick={this._saveSelected} icon={IconNames.DOWNLOAD} text={"Save"}/>
<Button onClick={this._reloadSelected} icon={IconNames.CLOUD_DOWNLOAD} disabled={!selected.url} text={"Revert"}/>
<Button onClick={this._removeSelected} icon={IconNames.CROSS} text={'Remove'}/>
</div>
</div>
: <NonIdealState visual='arrow-left' title={"No language selected"} description={"Load existing subtitles or add a new language, and click the Edit button."} />}
</div>
</div>
<div className='hbox mb' style={{textAlign: 'center', backgroundColor: '#efefef', padding: '10px'}}>
<div className='fill center'>
<Button onClick={this._beginEdit} disabled={!selected} icon={IconNames.EDIT} text={"Edit"} style={{marginRight: '10px'}}/>
<Button onClick={this._save} icon={IconNames.CLOUD_UPLOAD} text={"Save"} disabled={!canSave} intent={unsaved ? Intent.PRIMARY : Intent.NONE}/>
</div>
</div>
{!canSave &&
<Callout intent={Intent.WARNING} title={"Insufficient access rights"}>
{"The current user is not allowed to modify this Codecast."}
</Callout>}
<div>
{notify.key === 'pending' && <Callout icon={<Spinner small/>}>{"Saving, please wait."}</Callout>}
{notify.key === 'success' && <Callout icon='saved' intent={Intent.SUCCESS}>{"Saved."}</Callout>}
{notify.key === 'failure' && <Callout icon='warning-sign' intent={Intent.DANGER}>{"Failed to save: "}{notify.message}</Callout>}
</div>
</div>
);
}
_refLoad = (el) => {</textarea></div>
href="#lookups"
disabled={!capabilities.hasCoordinatorAccess()}
/>
);
return (
<a href="#">
</a>
{stepRows}
{saving.done &&
<div style="{{textAlign:">
</div>}
);
}
return (
<div>
<button>
</button><button>
{savingView}
</button></div>
);
}
static getDerivedStateFromProps (props, state) {
status: string,
type: string,
): BasicAction[] {
const { goToDatasource, goToLoadData } = this.props;
const actions: BasicAction[] = [];
if (datasource && status === 'SUCCESS') {
actions.push({
icon: IconNames.MULTI_SELECT,
title: 'Go to datasource',
onAction: () => goToDatasource(datasource),
});
}
if (type === 'index' || type === 'index_parallel') {
actions.push({
icon: IconNames.CLOUD_UPLOAD,
title: 'Open in data loader',
onAction: () => goToLoadData(undefined, id),
});
}
if (status === 'RUNNING' || status === 'WAITING' || status === 'PENDING') {
actions.push({
icon: IconNames.CROSS,
title: 'Kill',
intent: Intent.DANGER,
onAction: () => this.setState({ killTaskId: id }),
});
}
return actions;
}