summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/index.js')
-rw-r--r--app/assets/javascripts/static_site_editor/index.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/assets/javascripts/static_site_editor/index.js b/app/assets/javascripts/static_site_editor/index.js
index 12aa301e02f..b7e5ea4eee3 100644
--- a/app/assets/javascripts/static_site_editor/index.js
+++ b/app/assets/javascripts/static_site_editor/index.js
@@ -5,7 +5,14 @@ import createRouter from './router';
import createApolloProvider from './graphql';
const initStaticSiteEditor = el => {
- const { isSupportedContent, path: sourcePath, baseUrl, namespace, project } = el.dataset;
+ const {
+ isSupportedContent,
+ path: sourcePath,
+ baseUrl,
+ namespace,
+ project,
+ mergeRequestsIllustrationPath,
+ } = el.dataset;
const { current_username: username } = window.gon;
const returnUrl = el.dataset.returnUrl || null;
@@ -26,7 +33,11 @@ const initStaticSiteEditor = el => {
App,
},
render(createElement) {
- return createElement('app');
+ return createElement('app', {
+ props: {
+ mergeRequestsIllustrationPath,
+ },
+ });
},
});
};