From 931fafc21d9c35b9ece334f92fe99d26db1ad611 Mon Sep 17 00:00:00 2001 From: Michael Albert Date: Fri, 16 Oct 2020 13:30:19 +0200 Subject: [PATCH] Allow to set user_type 'limited' Change-Id: Ic3942a2150b9dfe57c106eb595b49b774fe8a30c --- src/components/users.js | 3 +++ src/i18n/de.js | 1 + src/i18n/en.js | 1 + 3 files changed, 5 insertions(+) diff --git a/src/components/users.js b/src/components/users.js index 5d65fcf..37b2816 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -155,6 +155,7 @@ export const UserList = props => { choices={[ { id: null, name: "resources.users.type.default" }, { id: "free", name: "resources.users.type.free" }, + { id: "limited", name: "resources.users.type.limited" }, ]} /> @@ -274,6 +275,7 @@ export const UserCreate = props => ( choices={[ { id: null, name: "resources.users.type.default" }, { id: "free", name: "resources.users.type.free" }, + { id: "limited", name: "resources.users.type.limited" }, ]} /> @@ -327,6 +329,7 @@ export const UserEdit = props => { choices={[ { id: null, name: "resources.users.type.default" }, { id: "free", name: "resources.users.type.free" }, + { id: "limited", name: "resources.users.type.limited" }, ]} emptyText="resources.users.type.default" /> diff --git a/src/i18n/de.js b/src/i18n/de.js index 2e5c9f9..085dcfa 100644 --- a/src/i18n/de.js +++ b/src/i18n/de.js @@ -74,6 +74,7 @@ export default { type: { default: "Standard", free: "Basic", + limited: "Eingeschränkt", }, helper: { deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.", diff --git a/src/i18n/en.js b/src/i18n/en.js index c2fd838..0c4ee44 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -73,6 +73,7 @@ export default { type: { default: "Standard", free: "Basic", + limited: "Limited", }, helper: { deactivate: "Deactivated users cannot be reactivated",