Make use of Vue more universal (#2318)
This commit is contained in:
parent
9e9e1e0e52
commit
f3486360d2
|
@ -1568,7 +1568,7 @@ $(document).ready(function () {
|
||||||
initWebhook();
|
initWebhook();
|
||||||
initAdmin();
|
initAdmin();
|
||||||
initCodeView();
|
initCodeView();
|
||||||
initDashboardSearch();
|
initVueApp();
|
||||||
initTeamSettings();
|
initTeamSettings();
|
||||||
|
|
||||||
// Repo clone url.
|
// Repo clone url.
|
||||||
|
@ -1758,8 +1758,8 @@ function initVueComponents(){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function initDashboardSearch() {
|
function initVueApp() {
|
||||||
var el = document.getElementById('dashboard-repo-search');
|
var el = document.getElementById('app');
|
||||||
if (!el) {
|
if (!el) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div class="ten wide column">
|
<div class="ten wide column">
|
||||||
{{template "user/dashboard/feeds" .}}
|
{{template "user/dashboard/feeds" .}}
|
||||||
</div>
|
</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>
|
<repo-search :search-limit="searchLimit" :suburl="suburl" :uid="uid"><i class="fa fa-spinner fa-spin"></i></repo-search>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue