changed imports/binders to new location

This commit is contained in:
Florian Scholdei
2019-06-19 09:59:32 +02:00
parent c5252da2ec
commit 9bcc73938e
8 changed files with 31 additions and 34 deletions

View File

@@ -136,7 +136,7 @@ class Configuration extends React.Component<Props, State> {
className="delete"
onClick={() => this.setState({ configChanged: false })}
/>
{this.props.t("config-form.submit-success-notification")}
{this.props.t("config.form.submit-success-notification")}
</div>
);
}
@@ -167,7 +167,7 @@ class Configuration extends React.Component<Props, State> {
{this.props.render(renderProps)}
<hr />
<SubmitButton
label={t("config-form.submit")}
label={t("config.form.submit")}
disabled={!valid || readOnly}
loading={modifying}
/>

View File

@@ -29,20 +29,20 @@ class ConfigurationBinder {
// create NavigationLink with translated label
const ConfigNavLink = translate(this.i18nNamespace)(({t}) => {
return this.navLink("/config" + to, labelI18nKey, t);
return this.navLink("/admin/settings" + to, labelI18nKey, t);
});
// bind navigation link to extension point
binder.bind("config.navigation", ConfigNavLink, configPredicate);
binder.bind("admin.setting", ConfigNavLink, configPredicate);
// route for global configuration, passes the link from the index resource to component
const ConfigRoute = ({ url, links, ...additionalProps }) => {
const link = links[linkName].href;
return this.route(url + to, <ConfigurationComponent link={link} {...additionalProps} />);
return this.route(url + "/settings" + to, <ConfigurationComponent link={link} {...additionalProps} />);
};
// bind config route to extension point
binder.bind("config.route", ConfigRoute, configPredicate);
binder.bind("admin.route", ConfigRoute, configPredicate);
}
bindRepository(to: string, labelI18nKey: string, linkName: string, RepositoryComponent: any) {