in progress
This commit is contained in:
parent
7c6049c48d
commit
9b357ab8e0
|
@ -244,29 +244,12 @@ public class CkanEventHandlerManager {
|
|||
|
||||
@Override
|
||||
public void onClickedManageProduct(ClickedCMSManageProductButtonEvent showManageProductWidgetEvent) {
|
||||
final CkanContentModeratorWidget cms = new CkanContentModeratorWidget(DISPLAY_FIELD.values(), DISPLAY_FIELD.TITLE);
|
||||
Modal modal = new Modal(true);
|
||||
try {
|
||||
|
||||
|
||||
cms.isContentModeratorEnabled(new Command() {
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
try {
|
||||
cms.loadItemsForStatus(ItemStatus.PENDING);
|
||||
} catch (Exception e) {
|
||||
Window.alert(e.getMessage());
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
} catch (Exception e) {
|
||||
Window.alert(e.getMessage());
|
||||
return;
|
||||
}
|
||||
final CkanContentModeratorWidget cms = new CkanContentModeratorWidget(ItemStatus.PENDING, DISPLAY_FIELD.values(), DISPLAY_FIELD.TITLE);
|
||||
final Modal modal = new ExtModal(true, true);
|
||||
modal.setTitle("Manage Items");
|
||||
modal.setWidth(1200);
|
||||
modal.add(cms.getPanel());
|
||||
modal.setCloseVisible(true);
|
||||
modal.show();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue