Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reorder] menu items; fixes #736 #737

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions COMETwebapp/Model/Applications.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,46 @@
ComponentType = typeof(ModelDashboardBody)
},

new TabbedApplication
{
Name = "Parameter Editor",
Color = "#76b8fc",
IconType = typeof(FeatherLayout),
Description = "Table of element usages with their associated parameters.",
Url = WebAppConstantValues.ParameterEditorPage,
ComponentType = typeof(ParameterEditorBody)
},

new TabbedApplication
{
Name = "Subscription Dashboard",
Color = "#76fd98",

Check warning on line 79 in COMETwebapp/Model/Applications.cs

View workflow job for this annotation

GitHub Actions / Build

Define a constant instead of using this literal '#76fd98' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)

Check warning on line 79 in COMETwebapp/Model/Applications.cs

View workflow job for this annotation

GitHub Actions / Build

Define a constant instead of using this literal '#76fd98' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
IconType = typeof(FeatherActivity),
Description = "Table of subscribed values.",
Url = WebAppConstantValues.SubscriptionDashboardPage,
ComponentType = typeof(SubscriptionDashboardBody)
},

new Application
{
Name = "Requirement Management",
Color = "#fda966",
Icon = "link-intact",
Description = $"Edit requirements in the model.{Environment.NewLine}Under Development",
IsDisabled = true,
Url = WebAppConstantValues.RequirementManagementPage
},

new TabbedApplication
{
Name = "Model Editor",
Color = "#76fd98",
IconType = typeof(FeatherBox),
Description = "Populate model",
Url = WebAppConstantValues.ModelEditorPage,
ComponentType = typeof(ElementDefinitionTable)
},

new TabbedApplication
{
Name = "Parameter Editor",
Color = "#76b8fc",
IconType = typeof(FeatherLayout),
Description = "Table of element usages with their associated parameters.",
Url = WebAppConstantValues.ParameterEditorPage,
ComponentType = typeof(ParameterEditorBody)
},

new TabbedApplication
{
Name = "System Representation",
Expand All @@ -103,14 +123,14 @@
ComponentType = typeof(SystemRepresentationBody)
},

new Application
new TabbedApplication
{
Name = "Requirement Management",
Color = "#fda966",
Icon = "link-intact",
Description = $"Edit requirements in the model.{Environment.NewLine}Under Development",
IsDisabled = true,
Url = WebAppConstantValues.RequirementManagementPage
Name = "3D Viewer",
Color = "#76fd98",
IconType = typeof(FeatherPackage),
Description = "Show 3D Viewer",
Url = WebAppConstantValues.ViewerPage,
ComponentType = typeof(ViewerBody)
},

new Application
Expand All @@ -125,12 +145,12 @@

new TabbedApplication
{
Name = "3D Viewer",
Name = "Book Editor",
Color = "#76fd98",
IconType = typeof(FeatherPackage),
Description = "Show 3D Viewer",
Url = WebAppConstantValues.ViewerPage,
ComponentType = typeof(ViewerBody)
IconType = typeof(FeatherBook),
Description = "Manage books",
Url = WebAppConstantValues.BookEditorPage,
ComponentType = typeof(BookEditorBody)
},

new TabbedApplication
Expand All @@ -143,26 +163,6 @@
ComponentType = typeof(EngineeringModelBody)
},

new TabbedApplication
{
Name = "Model Editor",
Color = "#76fd98",
IconType = typeof(FeatherBox),
Description = "Populate model",
Url = WebAppConstantValues.ModelEditorPage,
ComponentType = typeof(ElementDefinitionTable)
},

new TabbedApplication
{
Name = "Book Editor",
Color = "#76fd98",
IconType = typeof(FeatherBook),
Description = "Manage books",
Url = WebAppConstantValues.BookEditorPage,
ComponentType = typeof(BookEditorBody)
},

new TabbedApplication
{
Name = "Reference Data",
Expand Down
Loading