Menu ve Sql Query Manager Required
This commit is contained in:
parent
62f38a27a5
commit
a7e8d7995b
4 changed files with 25 additions and 25 deletions
|
|
@ -954,6 +954,16 @@
|
|||
"RequiredPermissionName": "App.Definitions.WorkHour",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Administration.Definitions",
|
||||
"Code": "App.IpRestrictions",
|
||||
"DisplayName": "App.IpRestrictions",
|
||||
"Order": 3,
|
||||
"Url": "/admin/list/App.IpRestrictions",
|
||||
"Icon": "FcNfcSign",
|
||||
"RequiredPermissionName": "App.IpRestrictions",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "App.Administration",
|
||||
"Code": "Abp.Identity",
|
||||
|
|
@ -1024,21 +1034,11 @@
|
|||
"RequiredPermissionName": "Abp.Identity.OrganizationUnits",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "Abp.Identity",
|
||||
"Code": "App.IpRestrictions",
|
||||
"DisplayName": "App.IpRestrictions",
|
||||
"Order": 7,
|
||||
"Url": "/admin/list/App.IpRestrictions",
|
||||
"Icon": "FcNfcSign",
|
||||
"RequiredPermissionName": "App.IpRestrictions",
|
||||
"IsDisabled": false
|
||||
},
|
||||
{
|
||||
"ParentCode": "Abp.Identity",
|
||||
"Code": "App.AuditLogs",
|
||||
"DisplayName": "App.AuditLogs",
|
||||
"Order": 8,
|
||||
"Order": 7,
|
||||
"Url": "/admin/list/App.AuditLogs",
|
||||
"Icon": "FcMultipleInputs",
|
||||
"RequiredPermissionName": "App.AuditLogs",
|
||||
|
|
|
|||
|
|
@ -84,7 +84,8 @@ const formatLabel = (text: string) => {
|
|||
.join(" ");
|
||||
};
|
||||
|
||||
function newGroupItem(colName: string, sqlType = ''): WizardGroupItem {
|
||||
function newGroupItem(colName: string, meta?: DatabaseColumnDto): WizardGroupItem {
|
||||
const sqlType = meta?.dataType ?? ''
|
||||
return {
|
||||
id: `${colName}_${Date.now()}`,
|
||||
dataField: colName,
|
||||
|
|
@ -92,7 +93,7 @@ function newGroupItem(colName: string, sqlType = ''): WizardGroupItem {
|
|||
editorOptions: '',
|
||||
editorScript: '',
|
||||
colSpan: 1,
|
||||
isRequired: false,
|
||||
isRequired: meta?.isNullable === false,
|
||||
turkishCaption: formatLabel(colName),
|
||||
englishCaption: formatLabel(colName),
|
||||
}
|
||||
|
|
@ -467,8 +468,7 @@ const WizardStep3 = ({
|
|||
const availableColumns = [...selectedColumns].filter((c) => !placedColumns.has(c))
|
||||
|
||||
// ── Helpers ───────────────────────────────────────────────────────────────
|
||||
const colMeta = (name: string) =>
|
||||
selectCommandColumns.find((c) => c.columnName === name)?.dataType ?? ''
|
||||
const colMeta = (name: string) => selectCommandColumns.find((c) => c.columnName === name)
|
||||
|
||||
const addColumnToGroup = (colName: string, targetGroupId: string) => {
|
||||
onGroupsChange(
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ function RolesPermission({
|
|||
return permissionList ? (
|
||||
<Container>
|
||||
<Dialog
|
||||
width="60%"
|
||||
width="min(900px, 95vw)"
|
||||
isOpen={open}
|
||||
onAfterOpen={() => changeGroup(permissionList?.groups[0].name)}
|
||||
onClose={onDialogClose}
|
||||
|
|
@ -275,12 +275,12 @@ function RolesPermission({
|
|||
<hr className="mt-1 mb-2"></hr>
|
||||
|
||||
<div className="flex flex-col md:flex-row gap-4 mb-1">
|
||||
<div style={{ width: '30%' }}>
|
||||
<div className="w-full md:w-1/3">
|
||||
<Checkbox name="all" checked={isAllSelected} onChange={onSelectAll}>
|
||||
{translate('AbpPermissionManagement::SelectAllInAllTabs')}
|
||||
</Checkbox>
|
||||
</div>
|
||||
<div style={{ width: '70%' }}>
|
||||
<div className="w-full md:w-2/3">
|
||||
<Checkbox name="group" checked={isAllSelectedForGroup} onChange={onSelectAll}>
|
||||
{translate('AbpPermissionManagement::SelectAllInThisTab')}
|
||||
</Checkbox>
|
||||
|
|
@ -288,7 +288,7 @@ function RolesPermission({
|
|||
</div>
|
||||
|
||||
<div className="flex flex-col md:flex-row gap-4">
|
||||
<div style={{ width: '30%' }} className="max-h-[450px] overflow-y-auto">
|
||||
<div className="w-full md:w-1/3 max-h-[450px] overflow-y-auto">
|
||||
<hr className="mb-2"></hr>
|
||||
<Menu
|
||||
className="w-full"
|
||||
|
|
@ -308,7 +308,7 @@ function RolesPermission({
|
|||
))}
|
||||
</Menu>
|
||||
</div>
|
||||
<div style={{ width: '70%' }} className="max-h-[450px] overflow-y-auto">
|
||||
<div className="w-full md:w-2/3 max-h-[450px] overflow-y-auto">
|
||||
<hr className="mb-2"></hr>
|
||||
<Input
|
||||
size="sm"
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ function UsersPermission({
|
|||
|
||||
return permissionList ? (
|
||||
<Dialog
|
||||
width="60%"
|
||||
width="min(900px, 95vw)"
|
||||
isOpen={open}
|
||||
onAfterOpen={() => changeGroup(permissionList?.groups[0].name)}
|
||||
onClose={onDialogClose}
|
||||
|
|
@ -230,12 +230,12 @@ function UsersPermission({
|
|||
<hr className="mt-1 mb-2"></hr>
|
||||
|
||||
<div className="flex flex-col md:flex-row gap-4">
|
||||
<div style={{ width: '30%' }}>
|
||||
<div className="w-full md:w-1/3">
|
||||
<Checkbox name="all" checked={isAllSelected} onChange={onSelectAll}>
|
||||
{translate('AbpPermissionManagement::SelectAllInAllTabs')}
|
||||
</Checkbox>
|
||||
</div>
|
||||
<div style={{ width: '70%' }}>
|
||||
<div className="w-full md:w-2/3">
|
||||
<Checkbox name="group" checked={isAllSelectedForGroup} onChange={onSelectAll}>
|
||||
{translate('AbpPermissionManagement::SelectAllInThisTab')}
|
||||
</Checkbox>
|
||||
|
|
@ -243,7 +243,7 @@ function UsersPermission({
|
|||
</div>
|
||||
|
||||
<div className="flex flex-col md:flex-row gap-4">
|
||||
<div style={{ width: '30%' }} className="max-h-[450px] overflow-y-auto">
|
||||
<div className="w-full md:w-1/3 max-h-[450px] overflow-y-auto">
|
||||
<hr className="mt-2 mb-2"></hr>
|
||||
<Menu variant={mode} defaultActiveKeys={[selectedGroup?.displayName ?? '']}>
|
||||
{permissionList?.groups.map((group) => (
|
||||
|
|
@ -261,7 +261,7 @@ function UsersPermission({
|
|||
))}
|
||||
</Menu>
|
||||
</div>
|
||||
<div style={{ width: '70%' }} className="max-h-[450px] overflow-y-auto">
|
||||
<div className="w-full md:w-2/3 max-h-[450px] overflow-y-auto">
|
||||
<hr className="mt-2 mb-2"></hr>
|
||||
<div className="card-body">
|
||||
{selectedGroupPermissions.map((permission) => (
|
||||
|
|
|
|||
Loading…
Reference in a new issue