+
} className={styles.backLink}>
+ {t('role_details.back_to_roles')}
+
+ {isLoading &&
}
+ {!data && error &&
{`error occurred: ${error.body?.message ?? error.message}`}
}
+ {data && (
+ <>
+
+
+
{data.name}
+
+
{t('role_details.identifier')}
+
+
+
+ , size: 'large' }}
+ title={t('general.more_options')}
+ >
+ }
+ type="danger"
+ onClick={() => {
+ // Todo:@xiaoyijun handle delete
+ }}
+ >
+ {t('general.delete')}
+
+
+
+
+ {t('role_details.settings_tab')}
+
+
{
+ void mutate(data);
+ }}
+ />
+ >
+ )}
+
+ );
+};
+
+export default RoleDetails;
diff --git a/packages/phrases/src/locales/de/translation/admin-console/index.ts b/packages/phrases/src/locales/de/translation/admin-console/index.ts
index c4dc1ba62..f9a9ba927 100644
--- a/packages/phrases/src/locales/de/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/de/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/de/translation/admin-console/role-details.ts b/packages/phrases/src/locales/de/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/de/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/en/translation/admin-console/index.ts b/packages/phrases/src/locales/en/translation/admin-console/index.ts
index 09a18c0c5..3a7da49d0 100644
--- a/packages/phrases/src/locales/en/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/en/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/en/translation/admin-console/role-details.ts b/packages/phrases/src/locales/en/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/en/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/fr/translation/admin-console/index.ts b/packages/phrases/src/locales/fr/translation/admin-console/index.ts
index 09a18c0c5..3a7da49d0 100644
--- a/packages/phrases/src/locales/fr/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/fr/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/fr/translation/admin-console/role-details.ts b/packages/phrases/src/locales/fr/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/fr/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/ko/translation/admin-console/index.ts b/packages/phrases/src/locales/ko/translation/admin-console/index.ts
index e7efe2388..6ccf4f598 100644
--- a/packages/phrases/src/locales/ko/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/ko/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/ko/translation/admin-console/role-details.ts b/packages/phrases/src/locales/ko/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/ko/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/index.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/index.ts
index 783442e67..d394f02c2 100644
--- a/packages/phrases/src/locales/pt-br/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/pt-br/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/role-details.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/pt-br/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/index.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/index.ts
index dc4df3b1f..119ff18a7 100644
--- a/packages/phrases/src/locales/pt-pt/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/role-details.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/index.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/index.ts
index 69b18a3a8..ef3819470 100644
--- a/packages/phrases/src/locales/tr-tr/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/role-details.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..926070cf5
--- /dev/null
+++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles', // UNTRANSLATED
+ identifier: 'Identifier', // UNTRANSLATED
+ settings_tab: 'Settings', // UNTRANSLATED
+ users_tab: 'Users', // UNTRANSLATED
+ permissions_tab: 'Permissions', // UNTRANSLATED
+ settings: 'Settings', // UNTRANSLATED
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name', // UNTRANSLATED
+ field_description: 'Description', // UNTRANSLATED
+};
+
+export default role_details;
diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/index.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/index.ts
index 00bad73aa..c91c6d24d 100644
--- a/packages/phrases/src/locales/zh-cn/translation/admin-console/index.ts
+++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/index.ts
@@ -11,6 +11,7 @@ import general from './general.js';
import get_started from './get-started.js';
import log_details from './log-details.js';
import logs from './logs.js';
+import role_details from './role-details.js';
import roles from './roles.js';
import session_expired from './session-expired.js';
import settings from './settings.js';
@@ -49,6 +50,7 @@ const admin_console = {
session_expired,
welcome,
roles,
+ role_details,
};
export default admin_console;
diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/role-details.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/role-details.ts
new file mode 100644
index 000000000..9ca835d19
--- /dev/null
+++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/role-details.ts
@@ -0,0 +1,14 @@
+const role_details = {
+ back_to_roles: 'Back to Roles',
+ identifier: 'Identifier',
+ settings_tab: 'Settings',
+ users_tab: 'Users',
+ permissions_tab: 'Permissions',
+ settings: 'Settings',
+ settings_description:
+ 'It real sent your at. Amounted all shy set why followed declared. Repeated of endeavor mr position kindness offering ignorant so up. Simplicity are melancholy preference considered saw companions.', // UNTRANSLATED
+ field_name: 'Name',
+ field_description: 'Description',
+};
+
+export default role_details;