Skip to content

Commit d7d8d5b

Browse files
committed
Release v0.1.12
1 parent 45b1140 commit d7d8d5b

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "niwder-ui",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.8.2",

Diff for: src/components/Transfers/TransfersBase/TransferredBase.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import RemoveCircleIcon from "@mui/icons-material/RemoveCircle";
1919
import { red, common } from "@mui/material/colors";
2020
import { removeTransferred } from "../../../store/actions";
2121
import ConfirmationDialog from "../../../helpers/ConfirmationDialog";
22+
import { confirmationMessages } from "../../../config/Constants";
2223

2324
/**
2425
*
@@ -176,9 +177,7 @@ const TransferredBase = ({ classes, dbPath, secondaryComponent }) => {
176177
open={open}
177178
onClose={handleClose}
178179
primaryMessage={"Removing Transferred File"}
179-
secondaryMessage={
180-
"You are going to remove the transferred file (but this will not remove the file from your cloud storage)."
181-
}
180+
secondaryMessage={confirmationMessages[dbPath]}
182181
action={() =>
183182
removeTransferred(dbPath, obj.key)(firebase)
184183
}

Diff for: src/config/Constants.js

+21
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,24 @@ export const MEGA_TO_DIRECT_ROUTE = `/transfers/${MEGA_TO_DIRECT_QUEUE}`;
2727
export const TORRENTS_TO_GDRIVE_ROUTE = `/transfers/${TORRENTS_TO_GDRIVE_QUEUE}`;
2828
export const TORRENTS_TO_MEGA_ROUTE = `/transfers/${TORRENTS_TO_MEGA_QUEUE}`;
2929
export const TORRENTS_TO_DIRECT_ROUTE = `/transfers/${TORRENTS_TO_DIRECT_QUEUE}`;
30+
31+
export const confirmationMessages = {
32+
[MEGA_TO_GDRIVE_QUEUE]:
33+
"You are going to remove the transferred file (but this will not remove the file from your Google Drive storage).",
34+
[GDRIVE_TO_MEGA_QUEUE]:
35+
"You are going to remove the transferred file (and the file will be removed from Mega.nz cloud storage).",
36+
[DIRECT_TO_GDRIVE_QUEUE]:
37+
"You are going to remove the transferred file (but this will not remove the file from your Google Drive storage).",
38+
[DIRECT_TO_MEGA_QUEUE]:
39+
"You are going to remove the transferred file (and the file will be removed from Mega.nz cloud storage).",
40+
[GDRIVE_TO_DIRECT_QUEUE]:
41+
"You are going to remove the transferred file (and the direct download link will stop working).",
42+
[MEGA_TO_DIRECT_QUEUE]:
43+
"You are going to remove the transferred file (and the direct download link will stop working).",
44+
[TORRENTS_TO_GDRIVE_QUEUE]:
45+
"You are going to remove the transferred file (but this will not remove the file from your Google Drive storage).",
46+
[TORRENTS_TO_MEGA_QUEUE]:
47+
"You are going to remove the transferred file (and the file will be removed from Mega.nz cloud storage).",
48+
[TORRENTS_TO_DIRECT_QUEUE]:
49+
"You are going to remove the transferred file (and the direct download link will stop working).",
50+
};

0 commit comments

Comments
 (0)