Skip to content

Commit f348636

Browse files
Morlinestlafriks
authored andcommitted
Make use of Vue more universal (#2318)
1 parent 9e9e1e0 commit f348636

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/js/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ $(document).ready(function () {
15681568
initWebhook();
15691569
initAdmin();
15701570
initCodeView();
1571-
initDashboardSearch();
1571+
initVueApp();
15721572
initTeamSettings();
15731573

15741574
// Repo clone url.
@@ -1758,8 +1758,8 @@ function initVueComponents(){
17581758
})
17591759
}
17601760

1761-
function initDashboardSearch() {
1762-
var el = document.getElementById('dashboard-repo-search');
1761+
function initVueApp() {
1762+
var el = document.getElementById('app');
17631763
if (!el) {
17641764
return;
17651765
}

templates/user/dashboard/dashboard.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="ten wide column">
88
{{template "user/dashboard/feeds" .}}
99
</div>
10-
<div id="dashboard-repo-search" class="six wide column">
10+
<div id="app" class="six wide column">
1111
<repo-search :search-limit="searchLimit" :suburl="suburl" :uid="uid"><i class="fa fa-spinner fa-spin"></i></repo-search>
1212
</div>
1313
</div>

0 commit comments

Comments
 (0)