mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
EmberJS: FolderID to SpaceID
Co-Authored-By: Harvey Kandola <harvey@documize.com>
This commit is contained in:
parent
66d5e73ed1
commit
e0457b40da
45 changed files with 170 additions and 99 deletions
|
@ -14,7 +14,7 @@ import attr from 'ember-data/attr';
|
|||
|
||||
export default Model.extend({
|
||||
orgId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
userId: attr('string'),
|
||||
contentType: attr('string'),
|
||||
pageType: attr('string'),
|
||||
|
|
|
@ -14,7 +14,7 @@ import attr from 'ember-data/attr';
|
|||
|
||||
export default Model.extend({
|
||||
orgId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
category: attr('string'),
|
||||
created: attr(),
|
||||
revised: attr(),
|
||||
|
|
|
@ -15,7 +15,7 @@ import attr from 'ember-data/attr';
|
|||
|
||||
export default Model.extend({
|
||||
orgId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
documentId: attr('string'),
|
||||
pageId: attr('string'),
|
||||
pageTitle: attr('string'),
|
||||
|
|
|
@ -20,7 +20,7 @@ export default Model.extend({
|
|||
job: attr('string'),
|
||||
location: attr('string'),
|
||||
orgId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
userId: attr('string'),
|
||||
tags: attr('string'),
|
||||
template: attr('boolean'),
|
||||
|
|
|
@ -18,7 +18,7 @@ export default Model.extend({
|
|||
name: attr('string'),
|
||||
orgId: attr('string'),
|
||||
userId: attr('string'),
|
||||
folderType: attr('number', { defaultValue: 2 }),
|
||||
spaceType: attr('number', { defaultValue: 2 }),
|
||||
lifecycle: attr('number', { defaultValue: 1 }),
|
||||
likes: attr('string'),
|
||||
|
||||
|
@ -32,17 +32,17 @@ export default Model.extend({
|
|||
|
||||
markAsRestricted() {
|
||||
let constants = this.get('constants');
|
||||
this.set('folderType', constants.FolderType.Protected);
|
||||
this.set('spaceType', constants.SpaceType.Protected);
|
||||
},
|
||||
|
||||
markAsPrivate() {
|
||||
let constants = this.get('constants');
|
||||
this.set('folderType', constants.FolderType.Private);
|
||||
this.set('spaceType', constants.SpaceType.Private);
|
||||
},
|
||||
|
||||
markAsPublic() {
|
||||
let constants = this.get('constants');
|
||||
this.set('folderType', constants.FolderType.Public);
|
||||
this.set('spaceType', constants.SpaceType.Public);
|
||||
},
|
||||
|
||||
// client-side prop that holds who can see this folder
|
||||
|
|
|
@ -16,7 +16,7 @@ import { computed } from '@ember/object';
|
|||
export default Model.extend({
|
||||
orgId: attr('string'),
|
||||
userId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
documentId: attr('string'),
|
||||
sequence: attr('number', { defaultValue: 99 }),
|
||||
pin: attr('string'),
|
||||
|
|
|
@ -20,8 +20,8 @@ export default Model.extend({
|
|||
firstname: attr('string'),
|
||||
lastname: attr('string'),
|
||||
name: attr('string'),
|
||||
folderId: attr('string'),
|
||||
folderType: attr('number', { defaultValue: 0 }),
|
||||
spaceId: attr('string'),
|
||||
spaceType: attr('number', { defaultValue: 0 }),
|
||||
|
||||
fullname: computed('firstname', 'lastname', function () {
|
||||
return `${this.get('firstname')} ${this.get('lastname')}`;
|
||||
|
|
|
@ -14,7 +14,7 @@ import attr from 'ember-data/attr';
|
|||
|
||||
export default Model.extend({
|
||||
orgId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
whoId: attr('string'),
|
||||
who: attr('string'),
|
||||
spaceView: attr('boolean'),
|
||||
|
|
|
@ -16,7 +16,7 @@ import attr from 'ember-data/attr';
|
|||
export default Model.extend({
|
||||
documentName: attr('string'),
|
||||
documentId: attr('string'),
|
||||
folderId: attr('string'),
|
||||
spaceId: attr('string'),
|
||||
contributed: attr('string'),
|
||||
viewed: attr('string'),
|
||||
created: attr('string'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue