Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`ShowJson matches snapshot 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</button>
<button
Expand Down
2 changes: 1 addition & 1 deletion web-console/src/components/show-json/show-json.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ShowJson = React.memo(function ShowJson(props: ShowJsonProps) {
{downloadFilename && (
<Button
disabled={jsonState.loading}
text="Save"
text="Download"
minimal
onClick={() => downloadFile(jsonValue, 'json', downloadFilename)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports[`ShowLog describe show log 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</a>
<button
Expand Down
2 changes: 1 addition & 1 deletion web-console/src/components/show-log/show-log.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class ShowLog extends React.PureComponent<ShowLogProps, ShowLogState> {
<ButtonGroup className="right-buttons">
{downloadFilename && (
<AnchorButton
text="Save"
text="Download"
minimal
download={downloadFilename}
href={UrlBaser.base(endpoint)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`ShowValue matches snapshot 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web-console/src/components/show-value/show-value.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const ShowValue = React.memo(function ShowValue(props: ShowValueProps) {
)}
{downloadFilename && (
<Button
text="Save"
text="Download"
minimal
onClick={() => downloadFile(jsonValue, 'json', downloadFilename)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ exports[`SegmentTableActionDialog matches snapshot 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</button>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ exports[`SupervisorTableActionDialog matches snapshot 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</button>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ exports[`TaskTableActionDialog matches snapshot 1`] = `
<span
class="bp4-button-text"
>
Save
Download
</span>
</button>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,8 @@ export function getSpecType(spec: Partial<IngestionSpec>): IngestionType {
);
}

export function isTask(spec: Partial<IngestionSpec>) {
const type = String(getSpecType(spec));
return (
type.startsWith('index_') ||
oneOf(type, 'index', 'compact', 'kill', 'append', 'merge', 'same_interval_merge')
);
export function isStreamingSpec(spec: Partial<IngestionSpec>): boolean {
return oneOf(getSpecType(spec), 'kafka', 'kinesis');
}

export function isDruidSource(spec: Partial<IngestionSpec>): boolean {
Expand Down
Loading