Skip to content

Commit

Permalink
Feature/ivyportal 18032 UI facelift conflict (#1312)
Browse files Browse the repository at this point in the history
* feature/IVYPORTAL-18032-UI-facelift-conflict

- Add border in Actions menu of Task widget

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Add border in actions menu for case widget

* bug/IVYPORTAL-18051-Portal-Dashboard-shows-no-permission-screen-when-… (#1280)

* bug/IVYPORTAL-18051-Portal-Dashboard-shows-no-permission-screen-when-dashboards-is-empty
_ adapt logic
_ import default dashboard

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update Edit external link UI

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Add error message when uploading file fail

* IVYPORTAL-18072 SPIKE: Evaluate the full screen issue with new case and task list
- Implemented

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update link and button following guidelines

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update UI of delete button

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update UI of remove/delete button

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Change icon of action menu

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update jenkinsfile

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update jenkins file

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update UI of destroy button in CaseItemDetails and TaskItemDetails

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update height of upload image in external link

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update GUI tests

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update screenshot tests

* feature/IVYPORTAL-18028-High-Failure-to-use-HTTPS-or-SFTP-URL-in-Maven-artifact-upload-download-Two-occurrences (#1298)

- Use HTTPS URL in maven artifact download

* Update portal_walkthrough_testplan.jmx for new test data (#1306)

* IVYPORTAL-18029 High - Client-side cross-site scripting
- Fixed security check

* Updated all pom build.plugin.version=12.0.0, ivy.engine.version=12.0.2 (#1308)

Co-authored-by: wawa-axonivy <[email protected]>

* IVYPORTAL-18029 High - Client-side cross-site scripting
- Try to fix Client-side cross-site scripting

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update UI delete document button

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Upload document-screenshot.js file

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update screenshot test

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update reset filter in task widget filter

* IVYPORTAL-18029 High - Client-side cross-site scripting
- Apply new approach

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update document

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update screenshot tests

* Revert "feature/IVYPORTAL-18032-UI-facelift-conflict"

This reverts commit 0f4b154.

* Revert "feature/IVYPORTAL-18032-UI-facelift-conflict"

This reverts commit 3c38c31.

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Update UI of process image

* IVYPORTAL-18029: Security findings- Client-side cross-site scripting (#1310)

* feature/IVYPORTAL-18028-High-Failure-to-use-HTTPS-or-SFTP-URL-in-Maven-artifact-upload-download-Two-occurrences-12 (#1305)

* IVYPORTAL-18029 High - Client-side cross-site scripting
- Apply new approach to load taskUrl from server

* IVYPORTAL-18031 Medium - DOM text reinterpreted as HTML
- Implement

* IVYPORTAL-18029 Security findings- Client-side cross-site scripting
- Fixed GUI test

* IVYPORTAL-18072 SPIKE: Evaluate the full screen issue with new case and task list
- Handled feedback: make the dashboard load from memory responsiveness

* feature/IVYPORTAL-18032-UI-facelift-conflict

- Handle feedback

---------

Co-authored-by: Thinh Nguyen <[email protected]>
Co-authored-by: mnhnam-axonivy <[email protected]>
Co-authored-by: Tung Le <[email protected]>
Co-authored-by: wawa-axonivy <[email protected]>
Co-authored-by: Nam Mai <[email protected]>
Co-authored-by: Nam.Chu <[email protected]>
Co-authored-by: Nam Chu <[email protected]>
  • Loading branch information
8 people authored Dec 18, 2024
1 parent ef524d1 commit 885c2f9
Show file tree
Hide file tree
Showing 46 changed files with 314 additions and 162 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function highlightProcessItems() {
}

function highlightEditProcessIcon() {
appendStepAnnotation($("[id$='process-widget:edit-process-form:edit-process-icon:awesome-icon-selection']"), "4", -10, 100);
appendStepAnnotation($("[id$='process-widget:edit-process-form:edit-process-icon:awesome-icon-selection']"), "4", -40, 110);
}

function highlightEditProcessDialog() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void screenshotCaseDetails() throws IOException {
ScreenshotUtils.captureElementWithMarginOptionScreenshot(detailsPage.openAddAttachmentDialog(),
ScreenshotUtils.CASE_DETAIL_FOLDER + "how-to-attach-document-to-case", new ScreenshotMargin(10));
detailsPage.closeAddAttachmentDialog();
detailsPage.uploadDocumentWithoutError(FileHelper.getAbsolutePathToTestFile("test-no-files-no-js.pdf"));
detailsPage.uploadDocument(FileHelper.getAbsolutePathToTestFile("test-no-files-no-js.pdf"));

refreshPage();
detailsPage.waitForCaseDetailsDisplay();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ public void screenshotPortalFullProcessesList() throws IOException {
ScreenshotUtils.captureElementWithMarginOptionScreenshot(processWidget.getProcessEditMenu(0),
ScreenshotUtils.PROCESSES_WIDGET_FOLDER + "edit-process-menu-item", new ScreenshotMargin(150, 200));
processWidget.clickOnProcessEditMenu(0);
ScreenshotUtils.maximizeBrowser();
ScreenshotUtils.executeDecorateJs("highlightEditProcessDialog()");
ScreenshotUtils.executeDecorateJs("highlightEditProcessIcon()");
ScreenshotUtils.captureElementWithMarginOptionScreenshot(processWidget.getEditProcessDialog(),
ScreenshotUtils.PROCESSES_WIDGET_FOLDER + "edit-process-dialog", new ScreenshotMargin(10));
ScreenshotUtils.PROCESSES_WIDGET_FOLDER + "edit-process-dialog", new ScreenshotMargin(5));
ScreenshotUtils.resizeBrowser(new Dimension(1366, 800));
refreshPage();
processWidget.waitUtilProcessWidgetDisplayed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,11 @@ public void uploadDocumentWithoutError(String pathToFile) {
$("button[id$='document:document-upload-close-command']").shouldBe(getClickableCondition(), DEFAULT_TIMEOUT)
.click();
}

public void uploadDocument(String pathToFile) {
$("input[id$='document-upload-panel_input']").shouldBe(exist, DEFAULT_TIMEOUT)
.shouldBe(Condition.hidden, DEFAULT_TIMEOUT).sendKeys(pathToFile);
}

public void openAddDocumentDialogAndUploadDocument(String pathToFile) {
getAddAttachmentDialog();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void nextPageTable() {
}

public void resetFilter() {
$("div.filter-overlay-panel__footer").shouldBe(appear, DEFAULT_TIMEOUT).$$("button[id$='reset-button']")
$("div.filter-overlay-panel__footer").shouldBe(appear, DEFAULT_TIMEOUT).$$("a[id$='reset-button']")
.filter(text("Reset")).first().shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
$("div.filter-overlay-panel__footer").shouldBe(disappear, DEFAULT_TIMEOUT);
waitForElementClickable($$("div.table-widget-panel")
Expand Down Expand Up @@ -269,7 +269,7 @@ public void removeAllFilterItems() {
}

public void openManageFiltersDialog() {
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("button").shouldBe(getClickableCondition()).click();
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("a").shouldBe(getClickableCondition()).click();
}

public void closeManageFilterDialog() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public SelenideElement getCompactModeProcessFilterPanelSaveButton() {
}

public SelenideElement getCompactModeProcessFilterPanelResetButton() {
return getCompactModeProcessFilterPanel().$("button[id$=':reset-button']");
return getCompactModeProcessFilterPanel().$("a[id$=':reset-button']");
}

public void resetCompactModeProcessFilterPanel() {
Expand Down Expand Up @@ -1033,7 +1033,7 @@ public NotificationCompactPage openNotificationPanel() {
}

public void clickOnManageFilterLink() {
$("div[class*='filter-overlay-panel__footer']").shouldBe(appear, DEFAULT_TIMEOUT).$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("button[class*='saved-filter__manage-filter']").shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
$("div[class*='filter-overlay-panel__footer']").shouldBe(appear, DEFAULT_TIMEOUT).$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("a[class*='saved-filter__manage-filter']").shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
$("[id$='manage-filter-dialog']").shouldBe(appear, DEFAULT_TIMEOUT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void applyFilter() {
}

public void resetFilter() {
$("div.filter-overlay-panel__footer").shouldBe(appear, DEFAULT_TIMEOUT).$$("button[id$='reset-button']")
$("div.filter-overlay-panel__footer").shouldBe(appear, DEFAULT_TIMEOUT).$$("a[id$='reset-button']")
.filter(text("Reset")).first().shouldBe(getClickableCondition(), DEFAULT_TIMEOUT).click();
}

Expand Down Expand Up @@ -183,7 +183,7 @@ public boolean hasSavedFilterItem(String filterName) {
}

public void clickOnManageFilterLink() {
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("button").shouldBe(getClickableCondition()).click();
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("a").shouldBe(getClickableCondition()).click();
$("[id$='manage-filter-dialog']").shouldBe(appear, DEFAULT_TIMEOUT);
}

Expand Down Expand Up @@ -530,7 +530,7 @@ public void saveFilter(String widgetFilterName) {
}

public void openManageFiltersDialog() {
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("button").shouldBe(getClickableCondition()).click();
$("div#manage-filter").shouldBe(appear, DEFAULT_TIMEOUT).$("a").shouldBe(getClickableCondition()).click();
}

public void removeAllFilterItems() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ public NewDashboardPage openTaskList() {
return openMainMenu().selectTaskMenu();
}

public void waitForTaskTitleAppear() {
waitForElementDisplayed(By.id("title"), true);
}

public void waitForIFrameContentVisible() {
waitForIFrameScreenshotSizeGreaterThan(IFRAME_SCREENSHOT_FILE_SIZE_AT_MINIMUM);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.axonivy.portal.selenium.common.NavigationHelper;
import com.axonivy.portal.selenium.page.MainMenuPage;
import com.axonivy.portal.selenium.page.NewDashboardPage;
import com.axonivy.portal.selenium.page.TaskIFrameTemplatePage;
import com.axonivy.portal.selenium.page.TopMenuTaskWidgetPage;
import com.axonivy.portal.selenium.page.UserProfilePage;
import com.axonivy.portal.selenium.page.WorkingTaskDialogFromUserProfilePage;
Expand All @@ -26,9 +27,10 @@ public void setup() {
public void testChangeLanguageWhenWorkingOnTask() {
NavigationHelper.navigateToTaskList();
TopMenuTaskWidgetPage taskWidget = new TopMenuTaskWidgetPage();
taskWidget.startTaskIFrameByIndex(0);
TaskIFrameTemplatePage taskPage = taskWidget.startTaskIFrameByIndex(0);
taskWidget.switchBackToParent();
taskWidget.clickOnMyProfile();
taskPage.waitForTaskTitleAppear();
taskPage.clickOnMyProfile();
WorkingTaskDialogFromUserProfilePage workingTaskDialogPage = new WorkingTaskDialogFromUserProfilePage();
workingTaskDialogPage.leaveTask();
UserProfilePage userProfilePage = new UserProfilePage();
Expand Down
1 change: 1 addition & 0 deletions AxonIvyPortal/portal/cms/cms_de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ ch.ivy.addon.portalkit.ui.jsf:
active: Aktiviert
add: Hinzufügen
addDocument: Dokument hinzufügen
addLink: Link hinzufügen
addNote: Notiz hinzufügen
allCategories: Alle Kategorien
allTypes: Alle Typen
Expand Down
1 change: 1 addition & 0 deletions AxonIvyPortal/portal/cms/cms_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ ch.ivy.addon.portalkit.ui.jsf:
active: Active
add: Add
addDocument: Add document
addLink: Add Link
addNote: Add note
allCategories: All Categories
allTypes: All types
Expand Down
1 change: 1 addition & 0 deletions AxonIvyPortal/portal/cms/cms_es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ ch.ivy.addon.portalkit.ui.jsf:
active: Activado
add: Añadir
addDocument: Agregar documento
addLink: Añadir enlace
addNote: Agregar nota
allCategories: Todas las categorias
allTypes: Todos los tipos
Expand Down
1 change: 1 addition & 0 deletions AxonIvyPortal/portal/cms/cms_fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ ch.ivy.addon.portalkit.ui.jsf:
active: Activé
add: Ajouter
addDocument: Ajouter un document
addLink: Ajouter un lien
addNote: Ajouter une note
allCategories: Toutes les catégories
allTypes: Tous les types
Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/portal/config/variables/Portal/Dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
],
"layout": {
"w": 12,
"h": 8,
"h": 12,
"x": 0,
"y": 0
},
Expand Down Expand Up @@ -489,7 +489,7 @@
],
"layout": {
"w": 12,
"h": 8,
"h": 12,
"x": 0,
"y": 0
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ public void init() {
.findGlobalSettingValue(GlobalVariable.DEFAULT_BEHAVIOUR_WHEN_CLICKING_ON_LINE_IN_TASK_LIST)
.equals(BehaviourWhenClickingOnLineInTaskList.RUN_TASK.name());

// Set responsive option for default task list and case list
if (DashboardUtils.isDefaultCaseListDashboard(selectedDashboard)
|| DashboardUtils.isDefaultTaskListDashboard(selectedDashboard)) {
selectedDashboard.setIsResponsive(true);
}

buildClientStatisticApiUri();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ public class Dashboard extends AbstractConfiguration implements Serializable {
private String displayedPermission;
private Boolean isTopMenu;

@JsonIgnore
private Boolean isResponsive;

public Dashboard() {
// Set default values
isTopMenu = false;
isResponsive = false;
}

public Dashboard(Dashboard dashboard) {
Expand All @@ -54,6 +58,7 @@ public Dashboard(Dashboard dashboard) {
permissionDTOs = dashboard.permissionDTOs;
displayedPermission = dashboard.displayedPermission;
isTopMenu = dashboard.isTopMenu;
isResponsive = dashboard.isResponsive;
}

public String getTitle() {
Expand Down Expand Up @@ -146,6 +151,16 @@ public void setIsTopMenu(Boolean isTopMenu) {
this.isTopMenu = isTopMenu;
}

@JsonIgnore
public Boolean getIsResponsive() {
return isResponsive;
}

@JsonIgnore
public void setIsResponsive(Boolean isResponsive) {
this.isResponsive = isResponsive;
}

@Override
public int hashCode() {
final int prime = 31;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,13 @@ public static void updatePropertiesToNullIfCurrentValueIsDefaultValue(List<Dashb
}
}

public static boolean isDefaultTaskListDashboard(Dashboard dashboard) {
return Optional.ofNullable(dashboard).map(Dashboard::getId)
.orElseGet(() -> "").contentEquals(DEFAULT_TASK_LIST_DASHBOARD);
}

public static boolean isDefaultCaseListDashboard(Dashboard dashboard) {
return Optional.ofNullable(dashboard).map(Dashboard::getId)
.orElseGet(() -> "").contentEquals(DEFAULT_CASE_LIST_DASHBOARD);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class DefaultDashboardUtils {
],
"layout": {
"w": 12,
"h": 8,
"h": 12,
"x": 0,
"y": 0
},
Expand Down Expand Up @@ -168,7 +168,7 @@ public class DefaultDashboardUtils {
],
"layout": {
"w": 12,
"h": 8,
"h": 12,
"x": 0,
"y": 0
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@
<ui:param name="dialogContent" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/confirmForDelete')}" />

<ui:define name="dialogFooter">
<p:commandLink id="document-deletion-cancellation-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}"
process="@this" onsuccess="PF('document-deletion-dialog').hide()" styleClass="u-mar-right-15"/>
<p:commandButton id="document-deletion-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/delete')}"
process="@this" icon="#{visibilityBean.generateButtonIcon('si si-remove')}"
process="@this"
update="case-document-global-messages case-doc-form"
actionListener="#{logic.deleteDocument}"
actionListener="#{logic.deleteDocument}" styleClass="w-full portal-remove-button"
oncomplete="PF('document-deletion-dialog').hide();" />
<p:commandLink id="document-deletion-cancellation-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}"
process="@this" onsuccess="PF('document-deletion-dialog').hide()" styleClass="pt-3 flex justify-content-center"/>
</ui:define>
</ui:decorate>
</ui:define>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@
<ui:param name="dialogContent" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/confirmForDelete')}" />

<ui:define name="dialogFooter">
<p:commandLink id="document-deletion-cancellation-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}"
process="@this" onsuccess="PF('document-deletion-dialog').hide()" styleClass="u-mar-right-15"/>
<p:commandButton id="document-deletion-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/delete')}"
process="@this" icon="#{visibilityBean.generateButtonIcon('si si-remove')}"
process="@this"
update="task-document-global-messages task-doc-form"
actionListener="#{logic.deleteDocument}"
actionListener="#{logic.deleteDocument}" styleClass="w-full portal-remove-button"
oncomplete="PF('document-deletion-dialog').hide();" />
<p:commandLink id="document-deletion-cancellation-command" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}"
process="@this" onsuccess="PF('document-deletion-dialog').hide()" styleClass="pt-3 flex justify-content-center"/>
</ui:define>
</ui:decorate>
</ui:define>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
</ui:define>

<ui:define name="headerAction">
<p:commandButton id="back-to-configuration" styleClass="dashboard__switch-mode u-mar-right-5 ui-button-flat"
<p:commandLink id="back-to-configuration" styleClass="dashboard__switch-mode u-mar-right-5 pr-2"
actionListener="#{dashboardDetailModificationBean.navigatetoDashboardConfigurationPage}"
update="grid-stack @this" process="@this"
value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/back')}"
icon="si si-arrow-left-1" />
update="grid-stack @this" process="@this">
<i class="relative si si-arrow-left-1" style="top: 2px;"/>
<span>#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/back')}</span>
</p:commandLink>

<c:set var="showRestoreButton" value="#{dashboardDetailModificationBean.foundTemplate.isPresent()}"/>
<h:panelGroup id="restore-button-group" styleClass="restore-button-group u-mar-right-15">
Expand Down Expand Up @@ -102,13 +103,14 @@
<ui:param name="dialogContent" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/dashboard/removeWidgetMessage')}" />

<ui:define name="dialogFooter">
<p:link href="#" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}" onclick="PF('remove-widget-dialog').hide();"
styleClass="u-mar-right-15" />
<p:commandButton id="remove-widget-button" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/remove')}"
actionListener="#{dashboardDetailModificationBean.removeWidget()}"
icon="#{visibilityBean.generateButtonIcon('si si-remove-circle')}"
process="@this"
oncomplete="PF('remove-widget-dialog').hide(); updateDashboardWidget(); return false;"/>
<h:panelGroup styleClass="flex flex-column">
<p:commandButton id="remove-widget-button" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/remove')}"
actionListener="#{dashboardDetailModificationBean.removeWidget()}"
process="@this" styleClass="w-full portal-remove-button"
oncomplete="PF('remove-widget-dialog').hide(); updateDashboardWidget(); return false;"/>
<p:link href="#" value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/cancel')}" onclick="PF('remove-widget-dialog').hide();"
styleClass="pt-3 flex justify-content-center" />
</h:panelGroup>
</ui:define>
</ui:decorate>
</ui:define>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/dashboard/dashboardManagement/deleteDashboardMessage',[dashboardModificationBean.selectedDashboard.title])}" />
<ui:define name="dialogFooter">
<div class="flex flex-column">
<p:commandButton id="remove-dashboard-button" styleClass="w-full"
<p:commandButton id="remove-dashboard-button" styleClass="w-full portal-remove-button"
value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/remove')}"
actionListener="#{dashboardModificationBean.removeDashboard()}"
update="dashboard-modification-container"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
oncomplete="PF('new-widget-configuration-dialog').show()" />
<p:menuitem id="delete-welcome-widget"
value="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/delete')}"
icon="si si-bin-1"
icon="si si-bin-1" styleClass="color-destroy"
oncomplete="PF('remove-widget-dialog').show()"
actionListener="#{dashboardDetailModificationBean.setDeleteWidget(widget)}"
update="remove-widget-dialog"
Expand Down
Loading

0 comments on commit 885c2f9

Please sign in to comment.