1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

use react-fake-view for dashboard/starred/linked-devices page (#2516)

This commit is contained in:
lian
2018-11-10 17:54:45 +08:00
committed by Daniel Pan
parent 1a88ba8787
commit 0915a44103
3 changed files with 5 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ class Item extends Component {
const data = this.props.data;
seafileAPI.unLinkDevice(data.platform, data.device_id).then((res) => {
seafileAPI.unlinkDevice(data.platform, data.device_id).then((res) => {
this.setState({
unlinked: true
});

View File

@@ -190,9 +190,9 @@ urlpatterns = [
url(r'^choose_register/$', choose_register, name="choose_register"),
### React ###
url(r'^dashboard/$', TemplateView.as_view(template_name="react_app.html"), name="dashboard"),
url(r'^starred/$', TemplateView.as_view(template_name="react_app.html"), name="starred"),
url(r'^linked-devices/$', linked_devices, name="linked_devices"),
url(r'^dashboard/$', react_fake_view, name="dashboard"),
url(r'^starred/$', react_fake_view, name="starred"),
url(r'^linked-devices/$', react_fake_view, name="linked_devices"),
### Ajax ###
url(r'^ajax/repo/(?P<repo_id>[-0-9a-f]{36})/dirents/$', get_dirents, name="get_dirents"),

View File

@@ -1211,5 +1211,5 @@ def choose_register(request):
})
@login_required
def linked_devices(request):
def react_fake_view(request):
return render(request, "react_app.html")