diff --git a/src/locales/en/common.json b/src/locales/en/common.json
index b6fad778..c6d0e3fa 100644
--- a/src/locales/en/common.json
+++ b/src/locales/en/common.json
@@ -486,7 +486,10 @@
"showMarkerInTable": "Show marker in Table",
"showMarkerInTableDescription": "This will add a circle before the the member name with the anotation color. You can still search the anotation if disabled.",
"addBackgroundColorInTable": "Add background color in table",
- "addBackgroundColorInTableDescription": "This will add row background color based on the anotation color. You can still search the anotation if disabled."
+ "addBackgroundColorInTableDescription": "This will add row background color based on the anotation color. You can still search the anotation if disabled.",
+ "memberTableTitle": "Member Table",
+ "deAuthorizationWarningTitle": "Display warning on member De-Authorization",
+ "deAuthorizationWarningLabel": "Display a confirmation modal to prevent accidental de-authorizations."
},
"zerotierCentral": {
"title": "Zerotier Central",
diff --git a/src/locales/es/common.json b/src/locales/es/common.json
index e90d896d..9a543afd 100644
--- a/src/locales/es/common.json
+++ b/src/locales/es/common.json
@@ -486,7 +486,10 @@
"showMarkerInTable": "Mostrar marcador en la tabla",
"showMarkerInTableDescription": "Esto agregará un círculo antes del nombre del miembro con el color de la anotación. Todavía puedes buscar la anotación si está desactivada.",
"addBackgroundColorInTable": "Agregar color de fondo en la tabla",
- "addBackgroundColorInTableDescription": "Esto agregará color de fondo a la fila según el color de la anotación. Todavía puedes buscar la anotación si está desactivada."
+ "addBackgroundColorInTableDescription": "Esto agregará color de fondo a la fila según el color de la anotación. Todavía puedes buscar la anotación si está desactivada.",
+ "memberTableTitle": "Tabla de Miembros",
+ "deAuthorizationWarningTitle": "Mostrar advertencia al desautorizar a un miembro",
+ "deAuthorizationWarningLabel": "Mostrar un modal de confirmación para evitar desautorizaciones accidentales."
},
"zerotierCentral": {
"title": "Zerotier Central",
diff --git a/src/locales/no/common.json b/src/locales/no/common.json
index 7ef99f36..7c1ac893 100644
--- a/src/locales/no/common.json
+++ b/src/locales/no/common.json
@@ -486,7 +486,10 @@
"showMarkerInTable": "Vis markør i tabellen",
"showMarkerInTableDescription": "Dette vil legge til en sirkel før medlemsnavnet med anmerkningsfargen. Du kan fremdeles søke anmerkningen hvis deaktivert.",
"addBackgroundColorInTable": "Legg til bakgrunnsfarge i tabellen",
- "addBackgroundColorInTableDescription": "Dette vil legge til radbakgrunnsfarge basert på anmerkningsfargen. Du kan fremdeles søke anmerkningen hvis deaktivert."
+ "addBackgroundColorInTableDescription": "Dette vil legge til radbakgrunnsfarge basert på anmerkningsfargen. Du kan fremdeles søke anmerkningen hvis deaktivert.",
+ "memberTableTitle": "Medlems Liste",
+ "deAuthorizationWarningTitle": "Vis advarsel ved fjerning av medlemsautorisasjon",
+ "deAuthorizationWarningLabel": "Vis en bekreftelsesmodal for å forhindre utilsiktet fjerning av autorisasjoner."
},
"zerotierCentral": {
"title": "Zerotier Central",
diff --git a/src/locales/zh/common.json b/src/locales/zh/common.json
index 72e03533..8025d87a 100644
--- a/src/locales/zh/common.json
+++ b/src/locales/zh/common.json
@@ -486,7 +486,10 @@
"showMarkerInTable": "在表格中显示标记",
"showMarkerInTableDescription": "这将在成员名称前添加一个带有注释颜色的圆圈。 如果禁用,您仍然可以搜索注释。",
"addBackgroundColorInTable": "在表格中添加背景颜色",
- "addBackgroundColorInTableDescription": "这将根据注释颜色添加行背景颜色。 如果禁用,您仍然可以搜索注释。"
+ "addBackgroundColorInTableDescription": "这将根据注释颜色添加行背景颜色。 如果禁用,您仍然可以搜索注释。",
+ "memberTableTitle": "成员表格",
+ "deAuthorizationWarningTitle": "在取消成员授权时显示警告",
+ "deAuthorizationWarningLabel": "显示确认模态框以防止意外取消授权。"
},
"zerotierCentral": {
"title": "Zerotier Central",
diff --git a/src/pages/user-settings/network/index.tsx b/src/pages/user-settings/network/index.tsx
index e220f5e0..125c7842 100644
--- a/src/pages/user-settings/network/index.tsx
+++ b/src/pages/user-settings/network/index.tsx
@@ -5,7 +5,8 @@ import { useTranslations } from "use-intl";
const UserNetworkSetting = () => {
const t = useTranslations("userSettings");
- const { mutate: updateNotation } = api.auth.updateUserNotation.useMutation();
+ const { mutate: updateSettings } = api.auth.updateUserOptions.useMutation();
+
const { data: me, refetch: refetchMe } = api.auth.me.useQuery();
return (
@@ -29,7 +30,7 @@ const UserNetworkSetting = () => {
checked={me?.options?.showNotationMarkerInTableRow || false}
className="checkbox-primary checkbox checkbox-sm justify-self-end"
onChange={(e) => {
- updateNotation(
+ updateSettings(
{
showNotationMarkerInTableRow: e.target.checked,
},
@@ -54,7 +55,7 @@ const UserNetworkSetting = () => {
checked={me?.options?.useNotationColorAsBg || false}
className="checkbox-primary checkbox checkbox-sm justify-self-end"
onChange={(e) => {
- updateNotation(
+ updateSettings(
{
useNotationColorAsBg: e.target.checked,
},
@@ -64,6 +65,35 @@ const UserNetworkSetting = () => {
/>