From f3486360d231fd6fcc5b620fc0f4e5e0325d858d Mon Sep 17 00:00:00 2001 From: Morlinest Date: Thu, 17 Aug 2017 18:04:39 +0200 Subject: [PATCH] Make use of Vue more universal (#2318) --- public/js/index.js | 6 +++--- templates/user/dashboard/dashboard.tmpl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 3152b2a5a4..169563a4ec 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1568,7 +1568,7 @@ $(document).ready(function () { initWebhook(); initAdmin(); initCodeView(); - initDashboardSearch(); + initVueApp(); initTeamSettings(); // Repo clone url. @@ -1758,8 +1758,8 @@ function initVueComponents(){ }) } -function initDashboardSearch() { - var el = document.getElementById('dashboard-repo-search'); +function initVueApp() { + var el = document.getElementById('app'); if (!el) { return; } diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 01619ff4ee..9135d117b7 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -7,7 +7,7 @@
{{template "user/dashboard/feeds" .}}
-