-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from documize/refactor-folder-routers
Refactor space routes
- Loading branch information
Showing
33 changed files
with
710 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved. | ||
// | ||
// This software (Documize Community Edition) is licensed under | ||
// This software (Documize Community Edition) is licensed under | ||
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html | ||
// | ||
// You can operate outside the AGPL restrictions by purchasing | ||
// Documize Enterprise Edition and obtaining a commercial license | ||
// by contacting <sales@documize.com>. | ||
// by contacting <sales@documize.com>. | ||
// | ||
// https://documize.com | ||
|
||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({}); | ||
export default Ember.Route.extend({ | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved. | ||
// | ||
// This software (Documize Community Edition) is licensed under | ||
// This software (Documize Community Edition) is licensed under | ||
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html | ||
// | ||
// You can operate outside the AGPL restrictions by purchasing | ||
// Documize Enterprise Edition and obtaining a commercial license | ||
// by contacting <sales@documize.com>. | ||
// by contacting <sales@documize.com>. | ||
// | ||
// https://documize.com | ||
|
||
import Ember from 'ember'; | ||
import NotifierMixin from '../../mixins/notifier'; | ||
|
||
export default Ember.Controller.extend({}); | ||
export default Ember.Controller.extend(NotifierMixin, { | ||
folderService: Ember.inject.service('folder'), | ||
|
||
actions: { | ||
onFolderAdd(folder) { | ||
let self = this; | ||
this.showNotification("Added"); | ||
|
||
this.get('folderService').add({ name: folder }).then(function (newFolder) { | ||
self.get('folderService').setCurrentFolder(newFolder); | ||
self.transitionToRoute('folder', newFolder.get('id'), newFolder.get('slug')); | ||
}); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
{{outlet}} | ||
{{layout/zone-navigation}} | ||
|
||
{{#layout/zone-sidebar}} | ||
{{folder/folders-list folders=model noFolder=true onFolderAdd=(action 'onFolderAdd')}} | ||
{{/layout/zone-sidebar}} | ||
|
||
{{#layout/zone-content}} | ||
{{/layout/zone-content}} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.