Loading client-app/src/app/component/request/_Send.js +7 −3 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ define([ _getTargetForGet: function(req, requesterChannel) { // TODO la propiedad 'id' desaparecerá, en su lugar se definirán todos los target por completo let target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); const id = req.id, Loading Loading @@ -104,11 +105,12 @@ define([ _getTargetForRequest: function(req, requesterChannel) { let target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); const target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); // TODO la propiedad 'action' desaparecerá, en su lugar se definirán todos los target por completo const action = req.action; if (action?.length) { target = this._getTargetWithEndingSlash(target) + action; if (action?.length && !target.includes(action)) { return this._getTargetWithEndingSlash(target) + action; } return target; Loading Loading @@ -207,6 +209,7 @@ define([ _getTargetForSave: function(req) { // TODO la propiedad 'idProperty' e 'id' desaparecerán, en su lugar se definirán todos los target por completo const idValue = this._getItemIdFromSaveRequest(req), idType = typeof idValue; Loading Loading @@ -279,6 +282,7 @@ define([ _getTargetForRemove: function(req) { // TODO la propiedad 'id' desaparecerá, en su lugar se definirán todos los target por completo const target = this._getTargetWithPathParamsReplaced(req.target), idValue = req.id; Loading client-app/src/component/layout/widgetProvider/_LayoutWidgetDefinition.js +4 −4 Original line number Diff line number Diff line define([ 'dojo/_base/declare' , 'src/component/layout/genericDisplayer/GenericDisplayer' , 'src/component/layout/SupersetDisplayer' , 'src/detail/activity/widget/ActivityAreaMap' , 'src/detail/activity/widget/ActivityCitationMap' , 'src/detail/activity/widget/ActivityFixedObservationSeriesList' Loading @@ -11,10 +13,10 @@ define([ , 'src/detail/activity/widget/ActivityLayerMap' , 'src/detail/activity/widget/ActivityTrackingMap' , 'src/detail/project/widget/ProjectAcousticDetectionMap' , 'src/component/layout/genericDisplayer/GenericDisplayer' , 'src/component/layout/SupersetDisplayer' ], function( declare , GenericDisplayer , SupersetDisplayer , ActivityAreaMap , ActivityCitationMap , ActivityFixedObservationSeriesList Loading @@ -26,8 +28,6 @@ define([ , ActivityLayerMap , ActivityTrackingMap , ProjectAcousticDetectionMap , GenericDisplayer , SupersetDisplayer ) { return declare(null, { Loading client-app/src/component/layout/widgetProvider/_PrepareLayoutWidget.js +3 −3 Original line number Diff line number Diff line Loading @@ -68,15 +68,15 @@ define([ const dfd = new Deferred(); dfd.then( (resolvedGrants) => this._onLayoutGranted(processedLayout, resolvedGrants), (rejectedGrants) => this._onLayoutNotGranted(processedLayout, rejectedGrants)); resolvedGrants => this._onLayoutGranted(processedLayout, resolvedGrants), rejectedGrants => this._onLayoutNotGranted(processedLayout, rejectedGrants)); this._checkUserGrantsForEntityData(entityData, layoutRoles, dfd); }, _checkUserGrantsForEntityData: function(entityData, roles, dfd) { this._once(this._buildChannel(this.credentialsChannel, 'GOT_USER_GRANTS_FOR_ENTITY'), (res) => { this._once(this._buildChannel(this.credentialsChannel, 'GOT_USER_GRANTS_FOR_ENTITY'), res => { res?.accessGranted ? dfd.resolve(res) : dfd.reject(res); }); Loading client-app/src/component/textSearch/_Suggestions.js +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ define([ _highlightOnDesiredSuggestion: function(/*String*/ defaultSibling, /*String*/ desiredSibling) { if (!this._suggestionsContainer.hasChildNodes()) { if (!this._suggestionsContainer?.hasChildNodes()) { return; } Loading client-app/src/app/component/request/RestManager.js +1 −1 File changed.Contains only whitespace changes. Show changes Loading
client-app/src/app/component/request/_Send.js +7 −3 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ define([ _getTargetForGet: function(req, requesterChannel) { // TODO la propiedad 'id' desaparecerá, en su lugar se definirán todos los target por completo let target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); const id = req.id, Loading Loading @@ -104,11 +105,12 @@ define([ _getTargetForRequest: function(req, requesterChannel) { let target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); const target = this._getTargetWithPathParamsReplaced(req.target, requesterChannel); // TODO la propiedad 'action' desaparecerá, en su lugar se definirán todos los target por completo const action = req.action; if (action?.length) { target = this._getTargetWithEndingSlash(target) + action; if (action?.length && !target.includes(action)) { return this._getTargetWithEndingSlash(target) + action; } return target; Loading Loading @@ -207,6 +209,7 @@ define([ _getTargetForSave: function(req) { // TODO la propiedad 'idProperty' e 'id' desaparecerán, en su lugar se definirán todos los target por completo const idValue = this._getItemIdFromSaveRequest(req), idType = typeof idValue; Loading Loading @@ -279,6 +282,7 @@ define([ _getTargetForRemove: function(req) { // TODO la propiedad 'id' desaparecerá, en su lugar se definirán todos los target por completo const target = this._getTargetWithPathParamsReplaced(req.target), idValue = req.id; Loading
client-app/src/component/layout/widgetProvider/_LayoutWidgetDefinition.js +4 −4 Original line number Diff line number Diff line define([ 'dojo/_base/declare' , 'src/component/layout/genericDisplayer/GenericDisplayer' , 'src/component/layout/SupersetDisplayer' , 'src/detail/activity/widget/ActivityAreaMap' , 'src/detail/activity/widget/ActivityCitationMap' , 'src/detail/activity/widget/ActivityFixedObservationSeriesList' Loading @@ -11,10 +13,10 @@ define([ , 'src/detail/activity/widget/ActivityLayerMap' , 'src/detail/activity/widget/ActivityTrackingMap' , 'src/detail/project/widget/ProjectAcousticDetectionMap' , 'src/component/layout/genericDisplayer/GenericDisplayer' , 'src/component/layout/SupersetDisplayer' ], function( declare , GenericDisplayer , SupersetDisplayer , ActivityAreaMap , ActivityCitationMap , ActivityFixedObservationSeriesList Loading @@ -26,8 +28,6 @@ define([ , ActivityLayerMap , ActivityTrackingMap , ProjectAcousticDetectionMap , GenericDisplayer , SupersetDisplayer ) { return declare(null, { Loading
client-app/src/component/layout/widgetProvider/_PrepareLayoutWidget.js +3 −3 Original line number Diff line number Diff line Loading @@ -68,15 +68,15 @@ define([ const dfd = new Deferred(); dfd.then( (resolvedGrants) => this._onLayoutGranted(processedLayout, resolvedGrants), (rejectedGrants) => this._onLayoutNotGranted(processedLayout, rejectedGrants)); resolvedGrants => this._onLayoutGranted(processedLayout, resolvedGrants), rejectedGrants => this._onLayoutNotGranted(processedLayout, rejectedGrants)); this._checkUserGrantsForEntityData(entityData, layoutRoles, dfd); }, _checkUserGrantsForEntityData: function(entityData, roles, dfd) { this._once(this._buildChannel(this.credentialsChannel, 'GOT_USER_GRANTS_FOR_ENTITY'), (res) => { this._once(this._buildChannel(this.credentialsChannel, 'GOT_USER_GRANTS_FOR_ENTITY'), res => { res?.accessGranted ? dfd.resolve(res) : dfd.reject(res); }); Loading
client-app/src/component/textSearch/_Suggestions.js +1 −1 Original line number Diff line number Diff line Loading @@ -104,7 +104,7 @@ define([ _highlightOnDesiredSuggestion: function(/*String*/ defaultSibling, /*String*/ desiredSibling) { if (!this._suggestionsContainer.hasChildNodes()) { if (!this._suggestionsContainer?.hasChildNodes()) { return; } Loading
client-app/src/app/component/request/RestManager.js +1 −1 File changed.Contains only whitespace changes. Show changes