Skip to content

Commit a1be7cc

Browse files
Add open page options to bob actions
1 parent c68310b commit a1be7cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui/widgets/EmbeddedDisplay/bobParser.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
import { PV } from "../../../types/pv";
2424
import { OpiFile, Rule } from "../../../types/props";
2525
import {
26+
OPEN_PAGE,
2627
OPEN_TAB,
2728
OPEN_WEBPAGE,
2829
WidgetActions,
@@ -282,8 +283,9 @@ export function bobParseActions(
282283
}
283284
});
284285
} else if (type === "open_display") {
286+
const type = action.target._text === "replace" ? OPEN_PAGE : OPEN_TAB;
285287
processedActions.actions.push({
286-
type: OPEN_TAB,
288+
type: type,
287289
dynamicInfo: {
288290
name: action.file._text,
289291
location: actionToLocation(action),

0 commit comments

Comments
 (0)