Skip to content

Commit

Permalink
Make use of Vue more universal (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morlinest authored and lafriks committed Aug 17, 2017
1 parent 9e9e1e0 commit f348636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ $(document).ready(function () {
initWebhook();
initAdmin();
initCodeView();
initDashboardSearch();
initVueApp();
initTeamSettings();

// Repo clone url.
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion templates/user/dashboard/dashboard.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="ten wide column">
{{template "user/dashboard/feeds" .}}
</div>
<div id="dashboard-repo-search" class="six wide column">
<div id="app" class="six wide column">
<repo-search :search-limit="searchLimit" :suburl="suburl" :uid="uid"><i class="fa fa-spinner fa-spin"></i></repo-search>
</div>
</div>
Expand Down

0 comments on commit f348636

Please sign in to comment.