Add missing subtitles (#1496)
Add the last missing subtitles in the scmm core.
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 255 KiB |
|
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 349 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 256 KiB After Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 286 KiB After Width: | Height: | Size: 333 KiB |
@@ -86,6 +86,7 @@
|
|||||||
"error-message": "'me' ist nicht definiert"
|
"error-message": "'me' ist nicht definiert"
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
|
"subtitle": "Passwort ändern",
|
||||||
"label": "Passwort",
|
"label": "Passwort",
|
||||||
"newPassword": "Neues Passwort",
|
"newPassword": "Neues Passwort",
|
||||||
"currentPassword": "Aktuelles Passwort",
|
"currentPassword": "Aktuelles Passwort",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"setPermissions": {
|
"setPermissions": {
|
||||||
"button": "Berechtigungen speichern",
|
"subtitle": "Berechtigungen setzen",
|
||||||
|
"button": "Berechtigungen setzen",
|
||||||
"setPermissionsSuccessful": "Berechtigungen erfolgreich gespeichert"
|
"setPermissionsSuccessful": "Berechtigungen erfolgreich gespeichert"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"singleUserPassword": {
|
"singleUserPassword": {
|
||||||
|
"subtitle": "Passwort setzen",
|
||||||
"button": "Passwort setzen",
|
"button": "Passwort setzen",
|
||||||
"setPasswordSuccessful": "Das Passwort wurde erfolgreich gespeichert."
|
"setPasswordSuccessful": "Das Passwort wurde erfolgreich gespeichert."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -87,6 +87,7 @@
|
|||||||
"error-message": "'me' is undefined"
|
"error-message": "'me' is undefined"
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
|
"subtitle": "Change Password",
|
||||||
"label": "Password",
|
"label": "Password",
|
||||||
"newPassword": "New Password",
|
"newPassword": "New Password",
|
||||||
"currentPassword": "Current Password",
|
"currentPassword": "Current Password",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"setPermissions": {
|
"setPermissions": {
|
||||||
|
"subtitle": "Set Permissions",
|
||||||
"button": "Set Permissions",
|
"button": "Set Permissions",
|
||||||
"setPermissionsSuccessful": "Permissions set successfully"
|
"setPermissionsSuccessful": "Permissions set successfully"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"singleUserPassword": {
|
"singleUserPassword": {
|
||||||
|
"subtitle": "Set Password",
|
||||||
"button": "Set Password",
|
"button": "Set Password",
|
||||||
"setPasswordSuccessful": "Password successfully set"
|
"setPasswordSuccessful": "Password successfully set"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ import {
|
|||||||
Level,
|
Level,
|
||||||
Notification,
|
Notification,
|
||||||
PasswordConfirmation,
|
PasswordConfirmation,
|
||||||
SubmitButton
|
SubmitButton,
|
||||||
|
Subtitle
|
||||||
} from "@scm-manager/ui-components";
|
} from "@scm-manager/ui-components";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import { Me } from "@scm-manager/ui-types";
|
import { Me } from "@scm-manager/ui-types";
|
||||||
@@ -55,9 +56,6 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
oldPassword: "",
|
oldPassword: "",
|
||||||
password: "",
|
password: "",
|
||||||
loading: false,
|
loading: false,
|
||||||
passwordConfirmationError: false,
|
|
||||||
validatePasswordError: false,
|
|
||||||
validatePassword: "",
|
|
||||||
passwordChanged: false,
|
passwordChanged: false,
|
||||||
passwordValid: false
|
passwordValid: false
|
||||||
};
|
};
|
||||||
@@ -127,6 +125,7 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={this.submit}>
|
<form onSubmit={this.submit}>
|
||||||
|
<Subtitle subtitle={t("password.subtitle")} />
|
||||||
{message}
|
{message}
|
||||||
<div className="columns">
|
<div className="columns">
|
||||||
<div className="column">
|
<div className="column">
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import React from "react";
|
|||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import { Link } from "@scm-manager/ui-types";
|
import { Link } from "@scm-manager/ui-types";
|
||||||
import { ErrorNotification, Level, Notification, SubmitButton } from "@scm-manager/ui-components";
|
import { ErrorNotification, Level, Notification, SubmitButton, Subtitle } from "@scm-manager/ui-components";
|
||||||
import { getLink } from "../../modules/indexResource";
|
import { getLink } from "../../modules/indexResource";
|
||||||
import { loadPermissionsForEntity, setPermissions } from "./handlePermissions";
|
import { loadPermissionsForEntity, setPermissions } from "./handlePermissions";
|
||||||
import PermissionsWrapper from "./PermissionsWrapper";
|
import PermissionsWrapper from "./PermissionsWrapper";
|
||||||
@@ -134,6 +134,7 @@ class SetPermissions extends React.Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={this.submit}>
|
<form onSubmit={this.submit}>
|
||||||
|
<Subtitle subtitle={t("setPermissions.subtitle")} />
|
||||||
{message}
|
{message}
|
||||||
{this.renderPermissions()}
|
{this.renderPermissions()}
|
||||||
<Level
|
<Level
|
||||||
|
|||||||
@@ -24,7 +24,14 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { WithTranslation, withTranslation } from "react-i18next";
|
import { WithTranslation, withTranslation } from "react-i18next";
|
||||||
import { User } from "@scm-manager/ui-types";
|
import { User } from "@scm-manager/ui-types";
|
||||||
import { ErrorNotification, Level, Notification, PasswordConfirmation, SubmitButton } from "@scm-manager/ui-components";
|
import {
|
||||||
|
ErrorNotification,
|
||||||
|
Subtitle,
|
||||||
|
Level,
|
||||||
|
Notification,
|
||||||
|
PasswordConfirmation,
|
||||||
|
SubmitButton
|
||||||
|
} from "@scm-manager/ui-components";
|
||||||
import { setPassword } from "./setPassword";
|
import { setPassword } from "./setPassword";
|
||||||
|
|
||||||
type Props = WithTranslation & {
|
type Props = WithTranslation & {
|
||||||
@@ -46,9 +53,6 @@ class SetUserPassword extends React.Component<Props, State> {
|
|||||||
this.state = {
|
this.state = {
|
||||||
password: "",
|
password: "",
|
||||||
loading: false,
|
loading: false,
|
||||||
passwordConfirmationError: false,
|
|
||||||
validatePasswordError: false,
|
|
||||||
validatePassword: "",
|
|
||||||
passwordChanged: false,
|
passwordChanged: false,
|
||||||
passwordValid: false
|
passwordValid: false
|
||||||
};
|
};
|
||||||
@@ -85,14 +89,16 @@ class SetUserPassword extends React.Component<Props, State> {
|
|||||||
const { password } = this.state;
|
const { password } = this.state;
|
||||||
this.setLoadingState();
|
this.setLoadingState();
|
||||||
setPassword(user._links.password.href, password)
|
setPassword(user._links.password.href, password)
|
||||||
.then(result => {
|
.then((result) => {
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
this.setErrorState(result.error);
|
this.setErrorState(result.error);
|
||||||
} else {
|
} else {
|
||||||
this.setSuccessfulState();
|
this.setSuccessfulState();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {});
|
.catch((err) => {
|
||||||
|
this.setErrorState(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -116,6 +122,7 @@ class SetUserPassword extends React.Component<Props, State> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<form onSubmit={this.submit}>
|
<form onSubmit={this.submit}>
|
||||||
|
<Subtitle subtitle={t("singleUserPassword.subtitle")} />
|
||||||
{message}
|
{message}
|
||||||
<PasswordConfirmation
|
<PasswordConfirmation
|
||||||
passwordChanged={this.passwordChanged}
|
passwordChanged={this.passwordChanged}
|
||||||
|
|||||||