Add an option to delete entries in Tasks permanently

Description

Currently all inactive tasks are showing if you press All button. Some users want to be able to delete task they dont need permanently.

Environment

None

Activity

Show:

wroot July 10, 2008 at 3:31 PM

Yes. It works now.

Andrew Seymour July 10, 2008 at 10:57 AM

Should be fixed in SVN now, thanks!

Michael Will July 9, 2008 at 8:53 PM

Apply this patch to fix them ..

Index: src/java/org/jivesoftware/resource/SparkRes.java
===================================================================
— src/java/org/jivesoftware/resource/SparkRes.java (revision 10653)
+++ src/java/org/jivesoftware/resource/SparkRes.java (working copy)
@@ -289,7 +289,8 @@
public static final String XMPP_TRANSPORT_ACTIVE_IMAGE = "XMPP_TRANSPORT_ACTIVE_IMAGE";
public static final String XMPP_TRANSPORT_INACTIVE_IMAGE = "XMPP_TRANSPORT_INACTIVE_IMAGE";
public static final String OFFLINE_IMAGE = "OFFLINE_IMAGE";
-
+ public static final String TASK_DELETE_IMAGE = "TASK_DELETE_IMAGE";
+
static ClassLoader cl = SparkRes.class.getClassLoader();

static {
Index: src/java/org/jivesoftware/resource/spark.properties
===================================================================
— src/java/org/jivesoftware/resource/spark.properties (revision 10653)
+++ src/java/org/jivesoftware/resource/spark.properties (working copy)
@@ -237,7 +237,8 @@
LIGHTBULB_ON_16x16_IMAGE = images/lightbulb_on.png
DUMMY_CONTACT_IMAGE = images/dummyContact.png
CALENDAR_IMAGE = images/icon_calendarpicker.gif
-
+TASK_DELETE_IMAGE = images/delete.png
+
#Fastpath Icons
FASTPATH_IMAGE_16x16 = images/fastpath16.png
FASTPATH_IMAGE_24x24 = images/fastpath24.png
Index: src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/TaskUI.java
===================================================================
— src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/TaskUI.java (revision 10653)
+++ src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/TaskUI.java (working copy)
@@ -28,6 +28,7 @@
import javax.swing.JPanel;

import org.jdesktop.swingx.calendar.DateUtils;
+import org.jivesoftware.resource.SparkRes;

/**
*
@@ -52,7 +53,7 @@
JPanel p_east = new JPanel(new BorderLayout());
p_east.setBackground(Color.white);

  • JLabel btn_del = new JLabel(new ImageIcon(ClassLoader.getSystemResource("images/delete.png")));
    + JLabel btn_del = new JLabel(SparkRes.getImageIcon(SparkRes.TASK_DELETE_IMAGE));


p_east.add(btn_del, BorderLayout.EAST);
p_east.add(new JLabel(" "), BorderLayout.CENTER);

wroot July 9, 2008 at 6:37 PM

can't open Tasks at all in last SVN version.

Andrew Seymour July 9, 2008 at 8:50 AM

Fixed, patch from David Schuster.

Fixed

Details

Priority

Assignee

Reporter

Affects versions

Fix versions

Components

Created February 27, 2008 at 4:05 PM
Updated July 10, 2008 at 3:31 PM
Resolved July 9, 2008 at 8:50 AM