Skip to content

Commit

Permalink
XWIKI-21944: Allow live data action to be async
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelleduc committed Feb 27, 2024
1 parent c651486 commit ceea6aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

/**
* Describes a live data action.
*
*
* @version $Id$
* @since 12.10.1
* @since 13.0
Expand Down Expand Up @@ -69,8 +69,6 @@ public class LiveDataActionDescriptor extends BaseDescriptor
*/
private LiveDataAsyncActionDescriptor async;



/**
* Default constructor.
*/
Expand All @@ -80,7 +78,7 @@ public LiveDataActionDescriptor()

/**
* Creates a new descriptor for the specified action.
*
*
* @param id the action id
*/
public LiveDataActionDescriptor(String id)
Expand All @@ -98,7 +96,7 @@ public String getName()

/**
* Sets the action pretty name.
*
*
* @param name the new pretty name
*/
public void setName(String name)
Expand All @@ -116,7 +114,7 @@ public String getDescription()

/**
* Sets the action description.
*
*
* @param description the new action description
*/
public void setDescription(String description)
Expand All @@ -134,7 +132,7 @@ public Map<String, Object> getIcon()

/**
* Sets the icon meta data.
*
*
* @param icon the new icon meta data
*/
public void setIcon(Map<String, Object> icon)
Expand All @@ -144,7 +142,7 @@ public void setIcon(Map<String, Object> icon)

/**
* @return the live data property used to determine if the current user is allowed to perform this action on a given
* live data entry
* live data entry
* @since 12.10.4
* @since 13.0
*/
Expand All @@ -156,9 +154,9 @@ public String getAllowProperty()
/**
* Sets the live data property to be used to determine if the current user is allowed to perform this action on a
* given live data entry.
*
*
* @param allowProperty the live data property used to determine if the current user is allowed to perform this
* action on a given live data entry
* action on a given live data entry
* @since 12.10.4
* @since 13.0
*/
Expand All @@ -179,9 +177,9 @@ public String getUrlProperty()

/**
* Sets the live data property that holds the URL that can be used to perform this action on a given entry.
*
* @param urlProperty the live data property that holds the URL that can be used to perform this action on a
* given entry
*
* @param urlProperty the live data property that holds the URL that can be used to perform this action on a given
* entry
* @since 12.10.4
* @since 13.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
>
<XWikiIcon :iconDescriptor="action.icon" /><span class="action-name">{{ action.name }}</span>
</a>

</div>
</template>

Expand Down Expand Up @@ -125,7 +124,6 @@ export default {
}

const response = await fetch(resource, options)

if (response.ok) {
notif.replace(new XWiki.widgets.Notification(async.successMessage, 'done'));
this.logic.updateEntries();
Expand Down

0 comments on commit ceea6aa

Please sign in to comment.