From 27ec82814231f8c564110b628de938b9a35d2bd7 Mon Sep 17 00:00:00 2001 From: Kristof De Langhe Date: Fri, 26 Jul 2019 13:28:32 +0200 Subject: [PATCH] 63945: Bitstream delete notifications, de-caching, reloading and small layout changes --- resources/i18n/en.json | 17 +++ .../item-bitstreams.component.html | 66 +++++----- .../item-bitstreams.component.ts | 119 ++++++++++++++++-- src/app/core/core.module.ts | 2 + src/app/core/data/bitstream-data.service.ts | 8 ++ src/app/core/data/request.service.ts | 11 ++ 6 files changed, 182 insertions(+), 41 deletions(-) diff --git a/resources/i18n/en.json b/resources/i18n/en.json index cc81394386..b503696178 100644 --- a/resources/i18n/en.json +++ b/resources/i18n/en.json @@ -286,6 +286,23 @@ "remove": "Remove", "undo": "Undo changes" } + }, + "notifications": { + "outdated": { + "title": "Changed outdated", + "content": "The item you're currently working on has been changed by another user. Your current changes are discarded to prevent conflicts" + }, + "discarded": { + "title": "Changed discarded", + "content": "Your changes were discarded. To reinstate your changes click the 'Undo' button" + }, + "saved": { + "title": "Bitstreams saved", + "content": "Your changes to this item's bitstreams were saved." + }, + "failed": { + "title": "Error deleting bitstream" + } } } } diff --git a/src/app/+item-page/edit-item-page/item-bitstreams/item-bitstreams.component.html b/src/app/+item-page/edit-item-page/item-bitstreams/item-bitstreams.component.html index 77f22e12ea..d74f8fe352 100644 --- a/src/app/+item-page/edit-item-page/item-bitstreams/item-bitstreams.component.html +++ b/src/app/+item-page/edit-item-page/item-bitstreams/item-bitstreams.component.html @@ -1,24 +1,26 @@
-
- - - +
+
+ + + +
- +
@@ -29,27 +31,29 @@ - + - - - + + + + +
{{'item.edit.bitstreams.headers.name' | translate}}
{{'item.edit.bitstreams.headers.bundle' | translate}}: {{ updatesItem.key }}
-
+