Skip to content

Commit

Permalink
Merge pull request #618 from Sitecore/feature/443-Context_menu_items_…
Browse files Browse the repository at this point in the history
…for_Sitecore_members

#443 Add OpenWebConfigButton to context menu for Sitecore members
  • Loading branch information
AndreyFilchenkov authored Sep 23, 2021
2 parents a923b10 + 3fd5be3 commit 20932df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using JetBrains.Annotations;

namespace SIM.Tool.Windows.MainWindowComponents.Buttons
{
[UsedImplicitly]
public class ConfigFilesButton : OpenWebConfigButton
{
}
}
2 changes: 1 addition & 1 deletion src/SIM.Tool.Windows/MainWindowData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ private static ButtonDefinition GetPatchButton()
{
Label = "Config Files",
Image = "/Images/$lg/copy.png, SIM.Tool.Windows",
Handler = new OpenWebConfigButton(),
Handler = new ConfigFilesButton(),
Buttons = new[]
{
new ButtonDefinition
Expand Down
1 change: 1 addition & 0 deletions src/SIM.Tool.Windows/SIM.Tool.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<Compile Include="MainWindowComponents\Buttons\AppStateButton.cs" />
<Compile Include="MainWindowComponents\Buttons\BrowseSitecoreContainerWebsiteButton.cs" />
<Compile Include="MainWindowComponents\Buttons\BrowseHomePageButton.cs" />
<Compile Include="MainWindowComponents\Buttons\ConfigFilesButton.cs" />
<Compile Include="MainWindowComponents\Buttons\CreateSupportHotfixButton.cs" />
<Compile Include="MainWindowComponents\Buttons\InstallModulesForSitecore9AndLaterButton.cs" />
<Compile Include="MainWindowComponents\Buttons\InstanceDummyButton.cs" />
Expand Down
6 changes: 5 additions & 1 deletion src/SIM.Tool/ButtonsConfiguration/ButtonsConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"OpenToolboxButton",
/*Log in admin, Copy URL*/
"LoginAdminButton",
/*Config Files, web.config*/
/*Config Files*/
"ConfigFilesButton",
/*web.config*/
"OpenWebConfigButton",
/*Global.asax, ConnectionStrings.config, Sitecore.config*/
"OpenFileButton",
Expand Down Expand Up @@ -117,6 +119,7 @@
"BrowseHomePageButton",
"OpenToolboxButton",
"LoginAdminButton",
"ConfigFilesButton",
"OpenWebConfigButton",
"OpenFileButton",
"ConfigBuilderButton",
Expand Down Expand Up @@ -147,6 +150,7 @@
"InstallMongoDbButton",
"SettingsButton",
"CreateSupportHotfixButton",
"OpenWebConfigButton",
"OpenFileButton",
"ConfigBuilderButton",
"OpenLogsButton",
Expand Down

0 comments on commit 20932df

Please sign in to comment.