Skip to content
代码片段 群组 项目
提交 a1687f52 编辑于 作者: Coung Ngo's avatar Coung Ngo
浏览文件

Merge branch 'rossetd/update-kiosk-mode' into 'master'

Updating injected query param when embedding GOUI

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/113236



Merged-by: default avatarCoung Ngo <cngo@gitlab.com>
Approved-by: default avatarPayton Burdette <pburdette@gitlab.com>
Approved-by: default avatarCoung Ngo <cngo@gitlab.com>
Co-authored-by: default avatarDaniele Rossetti <drossetti@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -3,7 +3,7 @@ import { darkModeEnabled } from '~/lib/utils/color_utils';
import { setUrlParams } from '~/lib/utils/url_utility';
export function getFrameSrc(url) {
return `${setUrlParams({ theme: darkModeEnabled() ? 'dark' : 'light' }, url)}&kiosk`;
return `${setUrlParams({ theme: darkModeEnabled() ? 'dark' : 'light' }, url)}&kiosk=inline-embed`;
}
const mountVueComponent = (element) => {
......
......@@ -10,7 +10,7 @@
let_it_be(:observable_url) { "https://observe.gitlab.com/#{group.id}/some-dashboard" }
let_it_be(:expected) do
%(<iframe src="#{observable_url}?theme=light&amp;kiosk" frameborder="0")
%(<iframe src="#{observable_url}?theme=light&amp;kiosk=inline-embed" frameborder="0")
end
before do
......
......@@ -9,7 +9,7 @@
let_it_be(:observable_url) { "https://observe.gitlab.com/#{group.id}/some-dashboard" }
let_it_be(:expected) do
%(<iframe src="#{observable_url}?theme=light&amp;kiosk" frameborder="0")
%(<iframe src="#{observable_url}?theme=light&amp;kiosk=inline-embed" frameborder="0")
end
before do
......
......@@ -3,7 +3,9 @@ import * as ColorUtils from '~/lib/utils/color_utils';
describe('Observability iframe renderer', () => {
const findObservabilityIframes = (theme = 'light') =>
document.querySelectorAll(`iframe[src="https://observe.gitlab.com/?theme=${theme}&kiosk"]`);
document.querySelectorAll(
`iframe[src="https://observe.gitlab.com/?theme=${theme}&kiosk=inline-embed"]`,
);
const renderEmbeddedObservability = () => {
renderObservability([...document.querySelectorAll('.js-render-observability')]);
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册