Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2020-11-09 10:05:51 -05:00
1 parent f6971073b8
commit bce0f94110
5 files changed
+1817 -1785

No files matched your search

+604 -594
View File
File diff suppressed because it is too large. Load diff
+603 -593
View File
File diff suppressed because it is too large. Load diff
+604 -594
View File
File diff suppressed because it is too large. Load diff
@@ -5,6 +5,7 @@ import { SubTitle } from "../../layout/sub-title";
import { EditableList } from "../../editable-list"; import { EditableList } from "../../editable-list";
import { observable } from "mobx"; import { observable } from "mobx";
import { _i18n } from "../../../i18n"; import { _i18n } from "../../../i18n";
import { Trans } from "@lingui/macro";
interface Props { interface Props {
cluster: Cluster; cluster: Cluster;
@@ -18,7 +19,7 @@ export class ClusterAccessibleNamespaces extends React.Component<Props> {
return ( return (
<> <>
<SubTitle title="Accessible Namespaces" /> <SubTitle title="Accessible Namespaces" />
<p>This setting is useful for manually specifying which namespaces you have access to. This is useful when you don't have permissions to list namespaces.</p> <p><Trans>This setting is useful for manually specifying which namespaces you have access to. This is useful when you don't have permissions to list namespaces.</Trans></p>
<EditableList <EditableList
placeholder={_i18n._("Add new namespace...")} placeholder={_i18n._("Add new namespace...")}
add={(newNamespace) => { add={(newNamespace) => {
@@ -34,4 +35,4 @@ export class ClusterAccessibleNamespaces extends React.Component<Props> {
</> </>
); );
} }
} }
@@ -6,6 +6,7 @@ import { Input } from "../input";
import { observable } from "mobx"; import { observable } from "mobx";
import { observer } from "mobx-react"; import { observer } from "mobx-react";
import { autobind } from "../../utils"; import { autobind } from "../../utils";
import { _i18n } from "../../i18n";
export interface Props<T> { export interface Props<T> {
items: T[], items: T[],
@@ -19,7 +20,7 @@ export interface Props<T> {
} }
const defaultProps: Partial<Props<any>> = { const defaultProps: Partial<Props<any>> = {
placeholder: "Add new item...", placeholder: _i18n._("Add new item..."),
renderItem: (item: any, index: number) => <React.Fragment key={index}>{item}</React.Fragment> renderItem: (item: any, index: number) => <React.Fragment key={index}>{item}</React.Fragment>
} }
@@ -67,4 +68,4 @@ export class EditableList<T> extends React.Component<Props<T>> {
</div> </div>
) )
} }
} }