mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
parent
763bd1f0e2
commit
bc49041359
8 changed files with 623 additions and 623 deletions
|
@ -8,7 +8,7 @@ The mission is to bring software dev inspired features (refactoring, testing, li
|
|||
|
||||
## Latest version
|
||||
|
||||
v1.49.2
|
||||
v1.50.0
|
||||
|
||||
## OS Support
|
||||
|
||||
|
|
|
@ -205,6 +205,10 @@ func GetDocumentsByFolder(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if len(documents) == 0 {
|
||||
documents = []entity.Document{}
|
||||
}
|
||||
|
||||
json, err := json.Marshal(documents)
|
||||
|
||||
if err != nil {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -52,6 +52,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
|
||||
actions: {
|
||||
error(error /*, transition*/ ) {
|
||||
console.log(error); // eslint-disable-line no-console
|
||||
if (error) {
|
||||
this.transitionTo('/not-found');
|
||||
return false;
|
||||
|
|
|
@ -42,10 +42,6 @@ export default Ember.Service.extend({
|
|||
content: Ember.A([])
|
||||
});
|
||||
|
||||
if (isObject(response)) {
|
||||
return documents;
|
||||
}
|
||||
|
||||
documents = response.map((doc) => {
|
||||
let data = this.get('store').normalize('document', doc);
|
||||
return this.get('store').push(data);
|
||||
|
|
|
@ -61,7 +61,6 @@ export default BaseService.extend({
|
|||
}
|
||||
|
||||
return this.reload();
|
||||
|
||||
},
|
||||
|
||||
// Updates an existing folder record.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "documize",
|
||||
"version": "1.49.2",
|
||||
"version": "1.50.0",
|
||||
"description": "The Document IDE",
|
||||
"private": true,
|
||||
"repository": "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue