Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of Vue more universal #2318

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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