in progress

This commit is contained in:
Francesco Mangiacrapa 2021-06-16 18:03:21 +02:00
parent 7c6049c48d
commit 9b357ab8e0
1 changed files with 5 additions and 22 deletions

View File

@ -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();
}