Browse Source

expose api tokens if enabled in project

Feroze Mohideen 2 years ago
parent
commit
3a9a41931f
1 changed files with 7 additions and 7 deletions
  1. 7 7
      dashboard/src/main/home/project-settings/ProjectSettings.tsx

+ 7 - 7
dashboard/src/main/home/project-settings/ProjectSettings.tsx

@@ -83,6 +83,13 @@ class ProjectSettings extends Component<PropsType, StateType> {
     //   label: "Billing",
     // });
 
+    if (currentProject?.api_tokens_enabled) {
+      tabOptions.push({
+        value: "api-tokens",
+        label: "API Tokens",
+      });
+    }
+
     if (this.props.isAuthorized("settings", "", ["get", "delete"])) {
       // if (this.context?.hasBillingEnabled) {
       //   tabOptions.push({
@@ -91,13 +98,6 @@ class ProjectSettings extends Component<PropsType, StateType> {
       //   });
       // }
 
-      if (currentProject?.api_tokens_enabled) {
-        tabOptions.push({
-          value: "api-tokens",
-          label: "API Tokens",
-        });
-      }
-
       tabOptions.push({
         value: "additional-settings",
         label: "Additional settings",