i want to add a button in the Admin-UI, how should I proceed? #58
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That doesn't look like it's from the Admin UI, instead from API Explorer or Locode with links to the Admin UI. To place it exactly where you want it you could redefine the Welcome.mjs by placing a local modified copy as documented in Custom Components which is done in Chinook. To override the Welcome component of both API Explorer Welcome.mjs and Locode Welcome.mjs you'll need to add local modified copies in your project at:
Otherwise the component does support adding "Admin Links" at the bottom which is done by all Admin UI Features to add links to different Admin Features, e.g AdminDatabaseFeature.cs and AdminRedisFeature.cs: appHost.ConfigurePlugin<UiFeature>(feature => {
feature.AddAdminLink(AdminUiFeature.Database, new LinkInfo {
Id = "database",
Label = "Database",
Icon = Svg.ImageSvg(Svg.Create(Svg.Body.Database)),
Show = $"role:{AdminRole}",
});
}); |
Beta Was this translation helpful? Give feedback.
That doesn't look like it's from the Admin UI, instead from API Explorer or Locode with links to the Admin UI.
To place it exactly where you want it you could redefine the Welcome.mjs by placing a local modified copy as documented in Custom Components which is done in Chinook.
To override the Welcome component of both API Explorer Welcome.mjs and Locode Welcome.mjs you'll need to add local modified copies in your project at:
Otherwise the component does support adding "Admin Links" at the bottom which is done by all Admin UI Features to add links to different Admin Features, e.g AdminDatabaseFeature.cs and A…