Skip to content

Commit

Permalink
Scenario fragment -> fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadius committed Jul 14, 2021
1 parent 3676c1b commit 19f8a9f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/client/components/table/AddProcessButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function AddProcessButton(props: {isSubprocess: boolean, className?: stri
const clashedNames = useClashedNames(addOpened)
const {t} = useTranslation()

const message = isSubprocess ? t("addProcessButton.subprocess", "Create new scenario fragment") :
const message = isSubprocess ? t("addProcessButton.subprocess", "Create new fragment") :
t("addProcessButton.process", "Create new scenario")

return (
Expand Down
2 changes: 1 addition & 1 deletion ui/client/components/table/SubprocessFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {useParseValue} from "./useParseValue"
const options: OptionType<boolean>[] = [
{label: "Show all types scenarios"},
{label: "Show only scenarios", value: false},
{label: "Show only scenario fragments", value: true},
{label: "Show only fragments", value: true},
]

export function SubprocessFilter(props: ValueFieldProps<boolean>): JSX.Element {
Expand Down
4 changes: 2 additions & 2 deletions ui/client/containers/SubProcesses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ShowProcessIcon({process}: {process: ProcessType}) {
const {t} = useTranslation()
return (
<ProcessLink processId={process.name}>
<TableRowIcon glyph="edit" title={t("tableRowIcon-edit-subprocess", "Edit scenario fragment")}/>
<TableRowIcon glyph="edit" title={t("tableRowIcon-edit-subprocess", "Edit fragment")}/>
</ProcessLink>
)
}
Expand Down Expand Up @@ -66,6 +66,6 @@ function SubProcesses() {

export const SubProcessesTabData = {
path: `${ProcessesTabData.path}/subprocesses`,
header: "Scenario fragments",
header: "Fragments",
Component: SubProcesses,
}
2 changes: 1 addition & 1 deletion ui/client/containers/editItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ShowItem({process}: {process: ProcessType}) {
const {t} = useTranslation()

const title = process.isSubprocess ?
t("tableRowIcon-show-subprocess", "Show scenario fragment") :
t("tableRowIcon-show-subprocess", "Show fragment") :
t("tableRowIcon-show", "Show scenario")

return (
Expand Down

0 comments on commit 19f8a9f

Please sign in to comment.