Skip to content

Commit 51dc517

Browse files
author
Jicheng Lu
committed
rename
1 parent b2a9275 commit 51dc517

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/helpers/types/pluginTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @property {string} label
1717
* @property {string} icon
1818
* @property {string} link
19-
* @property {string?} [iFrameUrl]
19+
* @property {string?} [embedUrl]
2020
* @property {boolean} isHeader
2121
*/
2222

src/routes/page/agent/metrics/+page.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
import { globalMenuStore } from '$lib/helpers/store';
99
1010
/** @type {string} */
11-
let iFrameUrl = '';
11+
let embedUrl = '';
1212
1313
const unsubscriber = globalMenuStore.subscribe((/** @type {import('$pluginTypes').PluginMenuDefModel[]} */ menu) => {
1414
const url = $page.url.pathname;
1515
const pageInfo = menu.find(x => x.link === url) || null;
16-
iFrameUrl = pageInfo?.iFrameUrl || '';
16+
embedUrl = pageInfo?.embedUrl || '';
1717
});
1818
1919
onDestroy(() => {
@@ -24,7 +24,7 @@
2424
<HeadTitle title="{$_('Metrics')}" />
2525
<Breadcrumb title="{$_('Agent')}" pagetitle="{$_('Metrics')}" />
2626
27-
{#if iFrameUrl}
27+
{#if embedUrl}
2828
<Row>
2929
<Col lg="12">
3030
<Card>
@@ -33,7 +33,7 @@
3333
title="agent-metrics"
3434
height="100%"
3535
width="100%"
36-
src={iFrameUrl}
36+
src={embedUrl}
3737
frameborder="0"
3838
allowfullscreen
3939
>

0 commit comments

Comments
 (0)