Преглед на файлове

Make use of Vue more universal (#2318)

tags/v1.2.0-rc1
Morlinest преди 6 години
родител
ревизия
f3486360d2
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 3
    3
      public/js/index.js
  2. 1
    1
      templates/user/dashboard/dashboard.tmpl

+ 3
- 3
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;
}

+ 1
- 1
templates/user/dashboard/dashboard.tmpl Целия файл

@@ -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>

Loading…
Отказ
Запис