mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 10:51:17 +00:00
[guest-user] update url of "libraries" and "my home" tab
This commit is contained in:
@@ -28,7 +28,7 @@ define([
|
||||
'common/lib/:repo_id(/*path)': 'showCommonDir',
|
||||
'starred/': 'showStarredFile',
|
||||
// Default
|
||||
'*actions': 'defaultAction'
|
||||
'*actions': 'showRepos'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
@@ -158,14 +158,8 @@ define([
|
||||
}
|
||||
this.switchCurrentView(this.orgView);
|
||||
this.orgView.showDir(repo_id, path);
|
||||
},
|
||||
|
||||
defaultAction: function(actions) {
|
||||
// We have no matching route, lets just log what the URL was
|
||||
|
||||
this.switchCurrentView(this.myHomeView);
|
||||
this.myHomeView.showMyRepos();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return Router;
|
||||
|
Reference in New Issue
Block a user