Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Commits
982d7e7c
Commit
982d7e7c
authored
7 months ago
by
Marcos Pieras
Browse files
Options
Downloads
Patches
Plain Diff
feat: add showMinimap configuration option
parent
dcaab15d
No related branches found
Branches containing commit
No related tags found
1 merge request
!204
feat: schema panel tooltips, redesigned tooltip, minimap configuration option
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libs/shared/lib/data-access/store/schemaSlice.ts
+2
-0
2 additions, 0 deletions
libs/shared/lib/data-access/store/schemaSlice.ts
libs/shared/lib/schema/panel/SchemaSettings.tsx
+8
-0
8 additions, 0 deletions
libs/shared/lib/schema/panel/SchemaSettings.tsx
with
10 additions
and
0 deletions
libs/shared/lib/data-access/store/schemaSlice.ts
+
2
−
0
View file @
982d7e7c
...
...
@@ -12,6 +12,7 @@ export type SchemaSettings = {
connectionType
:
SchemaConnectionTypes
;
layoutName
:
AllLayoutAlgorithms
;
animatedEdges
:
boolean
;
showMinimap
:
boolean
;
};
type
schemaSliceI
=
{
...
...
@@ -37,6 +38,7 @@ export const initialState: schemaSliceI = {
connectionType
:
'
connection
'
,
layoutName
:
Layouts
.
DAGRE
,
animatedEdges
:
false
,
showMinimap
:
true
,
},
};
export
const
schemaSlice
=
createSlice
({
...
...
This diff is collapsed.
Click to expand it.
libs/shared/lib/schema/panel/SchemaSettings.tsx
+
8
−
0
View file @
982d7e7c
...
...
@@ -19,6 +19,14 @@ export const SchemaSettings = () => {
dispatch
(
setSchemaSettings
({
...
settings
,
animatedEdges
:
value
as
any
}));
}
}
/>
<
Input
type
=
"boolean"
value
=
{
settings
.
showMinimap
}
label
=
"Show Minimap"
onChange
=
{
(
value
:
boolean
)
=>
{
dispatch
(
setSchemaSettings
({
...
settings
,
showMinimap
:
value
as
any
}));
}
}
/>
<
Input
type
=
"dropdown"
label
=
"Type of Connection"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment