unblock prod pipeline

This commit is contained in:
Maidul Islam
2024-07-30 11:00:27 -04:00
parent d6c0941fa9
commit 16e0a441ae
5 changed files with 12 additions and 12 deletions
@@ -1,11 +1,11 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import { useRouter } from 'next/router'; import { useEffect, useState } from "react";
import { useEffect, useState } from 'react'; import { useRouter } from "next/router";
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2"; import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context"; import { OrgPermissionActions, OrgPermissionSubjects } from "@app/context";
import { withPermission } from "@app/hoc"; import { withPermission } from "@app/hoc";
import { isTabSection, TabSections } from "@app/views/Org/Types";; import { isTabSection, TabSections } from "@app/views/Org/Types";
import { OrgIdentityTab, OrgMembersTab, OrgRoleTabSection } from "./components"; import { OrgIdentityTab, OrgMembersTab, OrgRoleTabSection } from "./components";
@@ -9,7 +9,7 @@ import { useWorkspace } from "@app/context";
import { ProjectMembershipRole } from "@app/hooks/api/roles/types"; import { ProjectMembershipRole } from "@app/hooks/api/roles/types";
import { TWorkspaceUser } from "@app/hooks/api/types"; import { TWorkspaceUser } from "@app/hooks/api/types";
import { UsePopUpState } from "@app/hooks/usePopUp"; import { UsePopUpState } from "@app/hooks/usePopUp";
import { TabSections } from "@app/views/Org/Types";; import { TabSections } from "@app/views/Org/Types";
type Props = { type Props = {
membership: TWorkspaceUser; membership: TWorkspaceUser;
@@ -1,13 +1,13 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
import { useRouter } from 'next/router'; import { useEffect, useState } from "react";
import { useEffect, useState } from 'react'; import { useRouter } from "next/router";
import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2"; import { Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context"; import { ProjectPermissionActions, ProjectPermissionSub } from "@app/context";
import { withProjectPermission } from "@app/hoc"; import { withProjectPermission } from "@app/hoc";
import { isTabSection,TabSections } from "../Types";
import { IdentityTab, MembersTab,ProjectRoleListTab, ServiceTokenTab } from "./components"; import { IdentityTab, MembersTab,ProjectRoleListTab, ServiceTokenTab } from "./components";
import { TabSections, isTabSection } from '../Types';
export const MembersPage = withProjectPermission( export const MembersPage = withProjectPermission(
@@ -20,8 +20,8 @@ import { withProjectPermission } from "@app/hoc";
import { useDeleteProjectRole,useGetProjectRoleBySlug } from "@app/hooks/api"; import { useDeleteProjectRole,useGetProjectRoleBySlug } from "@app/hooks/api";
import { usePopUp } from "@app/hooks/usePopUp"; import { usePopUp } from "@app/hooks/usePopUp";
import { TabSections } from "../Types";
import { RoleDetailsSection, RoleModal, RolePermissionsSection } from "./components"; import { RoleDetailsSection, RoleModal, RolePermissionsSection } from "./components";
import { TabSections } from '../Types';
export const RolePage = withProjectPermission( export const RolePage = withProjectPermission(
() => { () => {
@@ -72,11 +72,11 @@ export const SelectionPanel = ({
const getDeleteModalTitle = () => { const getDeleteModalTitle = () => {
if (selectedFolderCount > 0 && selectedKeysCount > 0) { if (selectedFolderCount > 0 && selectedKeysCount > 0) {
return "Do you want to delete the selected secrets and folders across environments?"; return "Do you want to delete the selected secrets and folders across environments?";
} else if (selectedKeysCount > 0 && selectedFolderCount === 0) {
return "Do you want to delete the selected secrets across environments?";
} else {
return "Do you want to delete the selected folders across environments?";
} }
if (selectedKeysCount > 0) {
return "Do you want to delete the selected secrets across environments?";
}
return "Do you want to delete the selected folders across environments?";
} }
const handleBulkDelete = async () => { const handleBulkDelete = async () => {