Skip to content

Commit

Permalink
ViewManager dialog tweak
Browse files Browse the repository at this point in the history
- Remove typeDisplayName ("view", or custom) from "Promote to Global" button within manager dialog - not needed, can overflow button when slightly longer type name specified.
  • Loading branch information
amcclain committed Jan 6, 2025
1 parent 060356d commit 67b3abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desktop/cmp/viewmanager/dialog/ViewPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const formButtons = hoistCmp.factory<ViewPanelModel>({
});
}

const {enableGlobal, globalDisplayName, manageGlobal, typeDisplayName, globalViews} =
const {enableGlobal, globalDisplayName, manageGlobal, globalViews} =
parent.viewManagerModel;
return vbox({
style: {gap: 10, alignItems: 'center'},
Expand All @@ -144,7 +144,7 @@ const formButtons = hoistCmp.factory<ViewPanelModel>({
onClick: () => parent.togglePinned([view])
}),
button({
text: `Promote to ${capitalize(globalDisplayName)} ${typeDisplayName}`,
text: `Promote to ${capitalize(globalDisplayName)}`,
icon: Icon.globe(),
width: 200,
outlined: true,
Expand Down

0 comments on commit 67b3abd

Please sign in to comment.