Skip to content

Commit ddd2f3b

Browse files
committed
update section key
1 parent 57fc1b9 commit ddd2f3b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

frontend/src/components/ui/config-details.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class ConfigDetails extends BtrixElement {
310310
${when(!this.hideMetadata, () =>
311311
this.renderSection({
312312
id: "collection",
313-
heading: sectionStrings.collection,
313+
heading: sectionStrings.collections,
314314
renderDescItems: () => html`
315315
${this.renderSetting(
316316
html`<span class="mb-1 inline-block"

frontend/src/features/crawl-workflows/workflow-editor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const getDefaultProgressState = (hasConfigId = false): ProgressState => {
204204
error: false,
205205
completed: hasConfigId,
206206
},
207-
collection: {
207+
collections: {
208208
error: false,
209209
completed: hasConfigId,
210210
},
@@ -2283,7 +2283,7 @@ https://archiveweb.page/images/${"logo.svg"}`}
22832283
`;
22842284
};
22852285

2286-
private renderCollection() {
2286+
private renderCollections() {
22872287
return html`
22882288
${inputCol(html`
22892289
<btrix-collections-add
@@ -2463,9 +2463,9 @@ https://archiveweb.page/images/${"logo.svg"}`}
24632463
render: this.renderJobScheduling,
24642464
},
24652465
{
2466-
name: "collection",
2466+
name: "collections",
24672467
desc: msg("Add crawls from this workflow to one or more collections."),
2468-
render: this.renderCollection,
2468+
render: this.renderCollections,
24692469
},
24702470
{
24712471
name: "metadata",

frontend/src/strings/crawl-workflows/section.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const section: Record<SectionsEnum, string> = {
88
behaviors: msg("Page Behavior"),
99
browserSettings: msg("Browser Settings"),
1010
scheduling: msg("Scheduling"),
11-
collection: msg("Collections"),
11+
collections: msg("Collections"),
1212
metadata: msg("Metadata"),
1313
};
1414

frontend/src/utils/workflow.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const SECTIONS = [
3939
"behaviors",
4040
"browserSettings",
4141
"scheduling",
42-
"collection",
42+
"collections",
4343
"metadata",
4444
] as const;
4545
export const sectionsEnum = z.enum(SECTIONS);
@@ -51,7 +51,7 @@ export enum GuideHash {
5151
Behaviors = "page-behavior",
5252
BrowserSettings = "browser-settings",
5353
Scheduling = "scheduling",
54-
Collection = "collection",
54+
Collections = "collections",
5555
Metadata = "metadata",
5656
}
5757

@@ -66,7 +66,7 @@ export const workflowTabToGuideHash: Record<SectionsEnum, GuideHash> = {
6666
behaviors: GuideHash.Behaviors,
6767
browserSettings: GuideHash.BrowserSettings,
6868
scheduling: GuideHash.Scheduling,
69-
collection: GuideHash.Metadata,
69+
collections: GuideHash.Collections,
7070
metadata: GuideHash.Metadata,
7171
};
7272

0 commit comments

Comments
 (0)