Skip to content

Commit 6cbde74

Browse files
committed
add section
1 parent 2fcf6d7 commit 6cbde74

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { localized } from "@lit/localize";
2+
import { html } from "lit";
3+
import { customElement } from "lit/decorators.js";
4+
5+
import { BtrixElement } from "@/classes/BtrixElement";
6+
7+
@customElement("btrix-org-settings-deduplication")
8+
@localized()
9+
export class OrgSettingsDeduplication extends BtrixElement {
10+
render() {
11+
return html`TODO`;
12+
}
13+
}

frontend/src/pages/org/settings/settings.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ import { tw } from "@/utils/tailwind";
2626
import "./components/general";
2727
import "./components/billing";
2828
import "./components/crawling-defaults";
29+
import "./components/deduplication";
2930

3031
const styles = unsafeCSS(stylesheet);
3132

32-
type Tab = "information" | "members" | "billing" | "crawling-defaults";
33+
type Tab =
34+
| "information"
35+
| "members"
36+
| "billing"
37+
| "crawling-defaults"
38+
| "deduplication";
3339
type User = {
3440
email: string;
3541
role: AccessCode;
@@ -92,6 +98,7 @@ export class OrgSettings extends BtrixElement {
9298
members: msg("Members"),
9399
billing: msg("Billing"),
94100
"crawling-defaults": msg("Crawling Defaults"),
101+
deduplication: msg("Deduplication"),
95102
};
96103
}
97104

@@ -158,6 +165,7 @@ export class OrgSettings extends BtrixElement {
158165
this.renderTab("billing", "settings/billing"),
159166
)}
160167
${this.renderTab("crawling-defaults", "settings/crawling-defaults")}
168+
${this.renderTab("deduplication", "settings/deduplication")}
161169
162170
<btrix-tab-group-panel name="information">
163171
${this.renderPanelHeader({ title: msg("General") })}
@@ -194,7 +202,7 @@ export class OrgSettings extends BtrixElement {
194202
</btrix-tab-group-panel>
195203
<btrix-tab-group-panel name="crawling-defaults">
196204
${this.renderPanelHeader({
197-
title: msg("Crawling Defaults"),
205+
title: this.tabLabels["crawling-defaults"],
198206
actions: html`
199207
<sl-tooltip
200208
content=${msg(
@@ -210,6 +218,10 @@ export class OrgSettings extends BtrixElement {
210218
})}
211219
<btrix-org-settings-crawling-defaults></btrix-org-settings-crawling-defaults>
212220
</btrix-tab-group-panel>
221+
<btrix-tab-group-panel name="deduplication">
222+
${this.renderPanelHeader({ title: this.tabLabels.deduplication })}
223+
<btrix-org-settings-deduplication></btrix-org-settings-deduplication>
224+
</btrix-tab-group-panel>
213225
</btrix-tab-group>`;
214226
}
215227

@@ -247,6 +259,10 @@ export class OrgSettings extends BtrixElement {
247259
"crawling-defaults",
248260
() => html`<sl-icon name="file-code-fill"></sl-icon>`,
249261
],
262+
[
263+
"deduplication",
264+
() => html`<sl-icon name="database-fill-gear"></sl-icon>`,
265+
],
250266
])}
251267
${this.tabLabels[name]}
252268
</btrix-tab-group-tab>

0 commit comments

Comments
 (0)