Skip to content

Commit a08e221

Browse files
Update the label of updateCameraSettings command.
1 parent 941f4c4 commit a08e221

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

packages/base/src/commands.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,13 @@ export function addCommands(
10571057
});
10581058

10591059
commands.addCommand(CommandIDs.updateCameraSettings, {
1060-
label: trans.__('Choose between Perspective and Orthographic Projection'),
1060+
label: () => {
1061+
const isOn =
1062+
tracker.currentWidget?.content?.cameraSettings?.type === 'Perspective';
1063+
return isOn
1064+
? trans.__('Perspective projection is on')
1065+
: trans.__('Orthographic projection is on');
1066+
},
10611067
isEnabled: () => Boolean(tracker.currentWidget),
10621068
icon: videoSolidIcon,
10631069
isToggled: () => {

0 commit comments

Comments
 (0)