@manuscripts/style-guide 1.1.8-LEAN-2457 → 1.1.8-LEAN-2457-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@ const MoveFilePopup = ({ dispatch, }) => {
57
57
  const { moveFilePopup: { isOpen, fileSection, attachmentId }, saveModel, deleteModel, modelMap, getAttachments, setMoveFilePopupData, } = (0, react_1.useContext)(FileManagerProvider_1.FileManagerContext);
58
58
  const isSupplement = fileSection === util_1.FileSectionType.Supplements;
59
59
  const message = {
60
- popupHeader: `Are you sure you want to move this file to “${(isSupplement && 'Supplements') || 'Other files'}”?`,
60
+ popupHeader: `Are you sure you want to move this file to “${(!isSupplement && 'Supplements') || 'Other files'}”?`,
61
61
  popUpMessage: `The file will be removed from the “${(isSupplement && 'Supplements') || 'Other files'}” and added to “${(!isSupplement && 'Supplements') || 'Other files'}”.`,
62
62
  };
63
63
  const closePopup = (0, react_1.useCallback)(() => setMoveFilePopupData({
@@ -38,6 +38,8 @@ const getCapabilities = (project, profile, role, actions) => {
38
38
  viewHistory: false,
39
39
  restoreVersion: isOwner() || isEditor() || isWriter(),
40
40
  downloadFiles: true,
41
+ changeDesignation: (isOwner() || isEditor() || isWriter()) &&
42
+ allowed(Actions.updateAttachment),
41
43
  moveFile: isOwner() || isEditor() || isWriter(),
42
44
  replaceFile: isOwner() || isEditor() || isWriter(),
43
45
  uploadFile: isOwner() || isEditor() || isWriter(),
@@ -30,7 +30,7 @@ export const MoveFilePopup = ({ dispatch, }) => {
30
30
  const { moveFilePopup: { isOpen, fileSection, attachmentId }, saveModel, deleteModel, modelMap, getAttachments, setMoveFilePopupData, } = useContext(FileManagerContext);
31
31
  const isSupplement = fileSection === FileSectionType.Supplements;
32
32
  const message = {
33
- popupHeader: `Are you sure you want to move this file to “${(isSupplement && 'Supplements') || 'Other files'}”?`,
33
+ popupHeader: `Are you sure you want to move this file to “${(!isSupplement && 'Supplements') || 'Other files'}”?`,
34
34
  popUpMessage: `The file will be removed from the “${(isSupplement && 'Supplements') || 'Other files'}” and added to “${(!isSupplement && 'Supplements') || 'Other files'}”.`,
35
35
  };
36
36
  const closePopup = useCallback(() => setMoveFilePopupData({
@@ -32,6 +32,8 @@ export const getCapabilities = (project, profile, role, actions) => {
32
32
  viewHistory: false,
33
33
  restoreVersion: isOwner() || isEditor() || isWriter(),
34
34
  downloadFiles: true,
35
+ changeDesignation: (isOwner() || isEditor() || isWriter()) &&
36
+ allowed(Actions.updateAttachment),
35
37
  moveFile: isOwner() || isEditor() || isWriter(),
36
38
  replaceFile: isOwner() || isEditor() || isWriter(),
37
39
  uploadFile: isOwner() || isEditor() || isWriter(),
@@ -19,6 +19,7 @@ export type Capabilities = {
19
19
  viewHistory: boolean;
20
20
  restoreVersion: boolean;
21
21
  downloadFiles: boolean;
22
+ changeDesignation: boolean;
22
23
  moveFile: boolean;
23
24
  replaceFile: boolean;
24
25
  uploadFile: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "1.1.8-LEAN-2457",
4
+ "version": "1.1.8-LEAN-2457-1",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",