From 27c419a4a433b147e2b637bd04ffca45190b939e Mon Sep 17 00:00:00 2001 From: Juanfran Date: Tue, 29 Mar 2016 10:09:11 +0200 Subject: [PATCH] fix custom notifications messages --- .../transfer/transfer-project.controller.coffee | 7 ++++++- .../includes/components/notification-message.jade | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/modules/projects/transfer/transfer-project.controller.coffee b/app/modules/projects/transfer/transfer-project.controller.coffee index 41fbd976..2921e896 100644 --- a/app/modules/projects/transfer/transfer-project.controller.coffee +++ b/app/modules/projects/transfer/transfer-project.controller.coffee @@ -76,7 +76,10 @@ class TransferProject project: @.project.get("slug") }) @location.path(newUrl) - @confirmService.notify("success", @translate.instant("ADMIN.PROJECT_TRANSFER.ACCEPTED_PROJECT_OWNERNSHIP"), '', 5000) + + @confirmService.notify("success", @translate.instant("ADMIN.PROJECT_TRANSFER.ACCEPTED_PROJECT_OWNERNSHIP"), '', 15000) + + return transferReject: (token, reason) -> @projectService.transferReject(@.project.get("id"), token, reason).success () => @@ -86,6 +89,8 @@ class TransferProject @location.path(newUrl) @confirmService.notify("success", @translate.instant("ADMIN.PROJECT_TRANSFER.REJECTED_PROJECT_OWNERNSHIP"), '', 5000) + return + addComment: () -> @.showAddComment = true diff --git a/app/partials/includes/components/notification-message.jade b/app/partials/includes/components/notification-message.jade index 4597bd30..aae6172b 100644 --- a/app/partials/includes/components/notification-message.jade +++ b/app/partials/includes/components/notification-message.jade @@ -11,22 +11,22 @@ div.notification-message.notification-message-success div.text - h4.warning(translate="NOTIFICATION.OK") - p(translate="NOTIFICATION.SAVED") + h4.warning + p div.notification-message.notification-message-error svg.icon.icon-error use(xlink:href="#icon-error") div.text - h4.warning(translate="NOTIFICATION.WARNING") - p(translate="NOTIFICATION.WARNING_TEXT") + h4.warning + p svg.icon.icon-close(href="", title="{{'NOTIFICATION.CLOSE' | translate}}") use(xlink:href="#icon-close") div.notification-light.notification-message-light-error div.text - h4.warning(translate="NOTIFICATION.WARNING") - p(translate="NOTIFICATION.WARNING_TEXT") + h4.warning + p a.close(href="", title="{{'NOTIFICATION.CLOSE' | translate}}") svg.icon.icon-close use(xlink:href="#icon-close")