1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2020-11-09 09:46:36 -05:00
parent f6971073b8
commit bce0f94110
5 changed files with 1817 additions and 1785 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@ import { SubTitle } from "../../layout/sub-title";
import { EditableList } from "../../editable-list";
import { observable } from "mobx";
import { _i18n } from "../../../i18n";
import { Trans } from "@lingui/macro";
interface Props {
cluster: Cluster;
@ -18,7 +19,7 @@ export class ClusterAccessibleNamespaces extends React.Component<Props> {
return (
<>
<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
placeholder={_i18n._("Add new namespace...")}
add={(newNamespace) => {
@ -34,4 +35,4 @@ export class ClusterAccessibleNamespaces extends React.Component<Props> {
</>
);
}
}
}

View File

@ -6,6 +6,7 @@ import { Input } from "../input";
import { observable } from "mobx";
import { observer } from "mobx-react";
import { autobind } from "../../utils";
import { _i18n } from "../../i18n";
export interface Props<T> {
items: T[],
@ -19,7 +20,7 @@ export interface Props<T> {
}
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>
}
@ -67,4 +68,4 @@ export class EditableList<T> extends React.Component<Props<T>> {
</div>
)
}
}
}