mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-09-23 00:30:43 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4d6ce5770 | ||
|
|
dd67ab6dcb | ||
|
|
2613948cdf | ||
|
|
dc95d8bfd1 | ||
|
|
f49c28f550 | ||
|
|
2fc7b73ea0 | ||
|
|
a9354d3c87 |
No files matched your search
@@ -197,6 +197,7 @@ const PeerUpdate = (props: any) => {
|
||||
os !== "" &&
|
||||
!os.toLowerCase().startsWith("darwin") &&
|
||||
!os.toLowerCase().startsWith("windows") &&
|
||||
!os.toLowerCase().startsWith("ios") &&
|
||||
!os.toLowerCase().startsWith("android")
|
||||
);
|
||||
};
|
||||
|
||||
@@ -151,6 +151,7 @@ const RouteAddNew = (selectedPeer: any) => {
|
||||
!os.toLowerCase().startsWith("darwin") &&
|
||||
!os.toLowerCase().startsWith("windows") &&
|
||||
!os.toLowerCase().startsWith("android") &&
|
||||
!os.toLowerCase().startsWith("ios") &&
|
||||
route &&
|
||||
!routes
|
||||
.filter((r) => r.network_id === route.network_id)
|
||||
|
||||
@@ -100,6 +100,7 @@ const RoutePeerUpdate = () => {
|
||||
!os.toLowerCase().startsWith("darwin") &&
|
||||
!os.toLowerCase().startsWith("windows") &&
|
||||
!os.toLowerCase().startsWith("android") &&
|
||||
!os.toLowerCase().startsWith("ios") &&
|
||||
route &&
|
||||
!routes
|
||||
.filter((r) => r.network_id === route.network_id)
|
||||
|
||||
@@ -96,6 +96,7 @@ const RouteAddNew = () => {
|
||||
!os.toLowerCase().startsWith("darwin") &&
|
||||
!os.toLowerCase().startsWith("windows") &&
|
||||
!os.toLowerCase().startsWith("android") &&
|
||||
!os.toLowerCase().startsWith("ios") &&
|
||||
route &&
|
||||
!routes
|
||||
.filter((r) => r.network_id === route.network_id)
|
||||
|
||||
+11
-3
@@ -1,15 +1,23 @@
|
||||
|
||||
|
||||
export const formatOS = (os) => {
|
||||
if (os.startsWith("windows 10")) {
|
||||
if (os.toLowerCase().startsWith("windows 10")) {
|
||||
return "Windows 10";
|
||||
}
|
||||
|
||||
if (os.toLowerCase().startsWith("windows server 10")) {
|
||||
return "Windows Server";
|
||||
}
|
||||
|
||||
if (os.startsWith("Darwin")) {
|
||||
return os.replace("Darwin", "MacOS");
|
||||
}
|
||||
// capitalize first letter
|
||||
os = os.charAt(0).toUpperCase() + os.slice(1);
|
||||
|
||||
if (!os.startsWith("iOS")) {
|
||||
// capitalize first letter
|
||||
os = os.charAt(0).toUpperCase() + os.slice(1);
|
||||
}
|
||||
|
||||
return os;
|
||||
};
|
||||
|
||||
|
||||
@@ -373,6 +373,9 @@ export const Activity = () => {
|
||||
case "account.setting.peer.login.expiration.enable":
|
||||
case "account.setting.peer.login.expiration.disable":
|
||||
case "account.setting.peer.login.expiration.update":
|
||||
case "integration.create":
|
||||
case "integration.update":
|
||||
case "integration.delete":
|
||||
return renderMultiRowSpan("", "System setting");
|
||||
case "personal.access.token.create":
|
||||
case "personal.access.token.delete":
|
||||
|
||||
+14
-11
@@ -305,17 +305,20 @@ export const Settings = () => {
|
||||
const createSingleArrayForPolicy: any = [];
|
||||
policies.map((aControl: any) => {
|
||||
const cSingleAccessArray = aControl.allGroups ? aControl.allGroups : [];
|
||||
aControl.rules[0].destinations.forEach((destination: any) => {
|
||||
if (cSingleAccessArray.indexOf(destination.id) === -1) {
|
||||
cSingleAccessArray.push(destination.id);
|
||||
}
|
||||
});
|
||||
|
||||
aControl.rules[0].sources.forEach((source: any) => {
|
||||
if (cSingleAccessArray.indexOf(source.id) === -1) {
|
||||
cSingleAccessArray.push(source.id);
|
||||
}
|
||||
});
|
||||
if (aControl.rules[0].destinations) {
|
||||
aControl.rules[0].destinations.forEach((destination: any) => {
|
||||
if (cSingleAccessArray.indexOf(destination.id) === -1) {
|
||||
cSingleAccessArray.push(destination.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (aControl.rules[0].sources) {
|
||||
aControl.rules[0].sources.forEach((source: any) => {
|
||||
if (cSingleAccessArray.indexOf(source.id) === -1) {
|
||||
cSingleAccessArray.push(source.id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
aControl["cSingleAccessArray"] = cSingleAccessArray;
|
||||
createSingleArrayForPolicy.push(aControl);
|
||||
|
||||
@@ -494,7 +494,6 @@ export const SetupKeys = () => {
|
||||
value={optionValidAll}
|
||||
optionType="button"
|
||||
buttonStyle="solid"
|
||||
disabled={!dataTable?.length}
|
||||
/>
|
||||
<Select
|
||||
style={{ marginRight: "10px" }}
|
||||
|
||||
Reference in new issue
Block a user