1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

fixed #103 and bumped version

bumped version
fixed #103
This commit is contained in:
Harvey Kandola 2017-07-20 11:37:38 +01:00
parent 763bd1f0e2
commit bc49041359
8 changed files with 623 additions and 623 deletions

View file

@ -8,7 +8,7 @@ The mission is to bring software dev inspired features (refactoring, testing, li
## Latest version ## Latest version
v1.49.2 v1.50.0
## OS Support ## OS Support

View file

@ -205,6 +205,10 @@ func GetDocumentsByFolder(w http.ResponseWriter, r *http.Request) {
return return
} }
if len(documents) == 0 {
documents = []entity.Document{}
}
json, err := json.Marshal(documents) json, err := json.Marshal(documents)
if err != nil { if err != nil {

File diff suppressed because one or more lines are too long

View file

@ -52,6 +52,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
actions: { actions: {
error(error /*, transition*/ ) { error(error /*, transition*/ ) {
console.log(error); // eslint-disable-line no-console
if (error) { if (error) {
this.transitionTo('/not-found'); this.transitionTo('/not-found');
return false; return false;

View file

@ -42,10 +42,6 @@ export default Ember.Service.extend({
content: Ember.A([]) content: Ember.A([])
}); });
if (isObject(response)) {
return documents;
}
documents = response.map((doc) => { documents = response.map((doc) => {
let data = this.get('store').normalize('document', doc); let data = this.get('store').normalize('document', doc);
return this.get('store').push(data); return this.get('store').push(data);

View file

@ -61,7 +61,6 @@ export default BaseService.extend({
} }
return this.reload(); return this.reload();
}, },
// Updates an existing folder record. // Updates an existing folder record.

View file

@ -1,6 +1,6 @@
{ {
"name": "documize", "name": "documize",
"version": "1.49.2", "version": "1.50.0",
"description": "The Document IDE", "description": "The Document IDE",
"private": true, "private": true,
"repository": "", "repository": "",