diff --git a/plugins/og/app/app/app.vue b/plugins/og/app/app/app.vue
index 3f2ca6dc..1d818c11 100644
--- a/plugins/og/app/app/app.vue
+++ b/plugins/og/app/app/app.vue
@@ -20,7 +20,11 @@ onMounted(() => viewer.inspect())
v-model:target="viewer.target.value"
:loading="viewer.loading.value"
:is-static="viewer.isStatic.value"
+ :is-embedded="viewer.isEmbedded"
+ :url="viewer.snapshot.value?.url"
+ :status="viewer.snapshot.value?.status"
@inspect="viewer.inspect()"
+ @refresh="viewer.refresh()"
/>
@@ -48,13 +52,6 @@ onMounted(() => viewer.inspect())
diff --git a/plugins/og/app/app/components/ViewerToolbar.stories.ts b/plugins/og/app/app/components/ViewerToolbar.stories.ts
index 9e3000e9..0faca57e 100644
--- a/plugins/og/app/app/components/ViewerToolbar.stories.ts
+++ b/plugins/og/app/app/components/ViewerToolbar.stories.ts
@@ -18,7 +18,18 @@ export const Idle: Story = {
const target = ref('https://devfra.me/')
return { target }
},
- template: `
`,
+ template: `
`,
+ }),
+}
+
+export const Embedded: Story = {
+ render: () => ({
+ components: { ViewerToolbar },
+ setup() {
+ const target = ref('/guide/')
+ return { target }
+ },
+ template: `
`,
}),
}
@@ -29,7 +40,7 @@ export const Loading: Story = {
const target = ref('https://devfra.me/')
return { target }
},
- template: `
`,
+ template: `
`,
}),
}
@@ -40,6 +51,6 @@ export const Static: Story = {
const target = ref('https://devfra.me/')
return { target }
},
- template: `
`,
+ template: `
`,
}),
}
diff --git a/plugins/og/app/app/components/ViewerToolbar.vue b/plugins/og/app/app/components/ViewerToolbar.vue
index 0dd63f90..0cd507a0 100644
--- a/plugins/og/app/app/components/ViewerToolbar.vue
+++ b/plugins/og/app/app/components/ViewerToolbar.vue
@@ -1,14 +1,21 @@