mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +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
|
@ -410,7 +410,7 @@ export default Service.extend({
|
|||
data.permissions = perms;
|
||||
data.roles = roles;
|
||||
data.folders = folders;
|
||||
data.folder = folders.findBy('id', doc.get('folderId'));
|
||||
data.folder = folders.findBy('id', doc.get('spaceId'));
|
||||
data.links = response.links;
|
||||
data.versions = response.versions;
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ export default Service.extend(Notifier, {
|
|||
linkId: a.attributes["data-link-id"].value,
|
||||
linkType: a.attributes["data-link-type"].value,
|
||||
documentId: a.attributes["data-link-target-document-id"].value,
|
||||
folderId: a.attributes["data-link-space-id"].value,
|
||||
spaceId: a.attributes["data-link-space-id"].value,
|
||||
targetId: a.attributes["data-link-target-id"].value,
|
||||
externalId: is.undefined(a.attributes["data-link-external-id"]) ? '' : a.attributes["data-link-external-id"].value,
|
||||
url: a.attributes["href"].value,
|
||||
|
|
|
@ -133,7 +133,7 @@ export default Service.extend({
|
|||
|
||||
return this.getUserPins().then((pins) => {
|
||||
pins.forEach((pin) => {
|
||||
if (pin.get('userId') === userId && pin.get('documentId') === '' && pin.get('folderId') === spaceId) {
|
||||
if (pin.get('userId') === userId && pin.get('documentId') === '' && pin.get('spaceId') === spaceId) {
|
||||
resolve(pin.get('id'));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue