) : null
+ }
{
Setting.getCountryCodeData(countryCodes).map((country) => Setting.getCountryCodeOption(country))
}
diff --git a/web/src/table/ProviderTable.js b/web/src/table/ProviderTable.js
index 29e47ec3..098708dd 100644
--- a/web/src/table/ProviderTable.js
+++ b/web/src/table/ProviderTable.js
@@ -15,6 +15,7 @@
import React from "react";
import {DeleteOutlined, DownOutlined, UpOutlined} from "@ant-design/icons";
import {Button, Col, Input, Row, Select, Switch, Table, Tooltip} from "antd";
+import {CountryCodeSelect} from "../common/select/CountryCodeSelect";
import * as Setting from "../Setting";
import i18next from "i18next";
import * as Provider from "../auth/Provider";
@@ -29,6 +30,10 @@ class ProviderTable extends React.Component {
};
}
+ getUserOrganization() {
+ return this.props.application?.organizationObj;
+ }
+
updateTable(table) {
this.props.onUpdateTable(table);
}
@@ -109,6 +114,30 @@ class ProviderTable extends React.Component {
return Provider.getProviderLogoWidget(provider);
},
},
+ {
+ title: i18next.t("user:Country/Region"),
+ dataIndex: "countryCode",
+ key: "countryCode",
+ width: "80px",
+ render: (text, record, index) => {
+ if (record.provider?.category !== "SMS") {
+ return null;
+ }
+
+ return (
+