diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json
index bd12db1..9f4fffd 100644
--- a/public/locales/en/translations.json
+++ b/public/locales/en/translations.json
@@ -8,6 +8,9 @@
"NUMBER": "{{number,intlNumber}}",
"DECIMAL": "{{number,intlDecimal}}",
"DECIMAL2": "{{number,intlDecimal2}}",
+ "Global": {
+ "InDevelopment": "In development..."
+ },
"Language": {
"English": "English",
"Romanian": "Romanian"
@@ -99,10 +102,6 @@
"ActiveSession": "Active session",
"ActiveSessionSubtitle": "Expand to see forwards",
"DDNSProvider": "Dynamic DNS Provider",
- "Actions": {
- "SendMessageToAuthor": "Send message to author"
- },
- "MessageForAuthor": "Message for author",
"Details": "Details"
},
"Charts": {
@@ -116,9 +115,6 @@
}
}
},
- "Notifications": {
- "MessageSaved": "Message saved"
- },
"Chatbot": {
"Wizard": {
"Message1": "I'm the wizard.",
diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json
index 9bd6392..c75b809 100644
--- a/public/locales/ro/translations.json
+++ b/public/locales/ro/translations.json
@@ -1,4 +1,7 @@
{
+ "Global": {
+ "InDevelopment": "In curs de dezvoltare..."
+ },
"Language": {
"English": "Engleză",
"Romanian": "Română"
@@ -90,10 +93,6 @@
"ActiveSession": "Sesiune activă",
"ActiveSessionSubtitle": "Extindeţi pentru a vedea redirectările",
"DDNSProvider": "Furnizor DNS dinamic",
- "Actions": {
- "SendMessageToAuthor": "Trimite mesaj către autor"
- },
- "MessageForAuthor": "Mesaj pentru autor",
"Details": "Detalii"
},
"Charts": {
@@ -107,9 +106,6 @@
}
}
},
- "Notifications": {
- "MessageSaved": "Mesaj salvat"
- },
"Chatbot": {
"Wizard": {
"Message1": "Eu sunt vrăjitorul.",
diff --git a/src/features/messageForAuthor/actionCreators.js b/src/features/messageForAuthor/actionCreators.js
deleted file mode 100644
index 2a5a351..0000000
--- a/src/features/messageForAuthor/actionCreators.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import * as types from "./actionTypes";
-import api from "./api";
-import { sendHttpRequest } from "../../redux/actions/httpActions";
-
-export function saveMessageForAuthor(messageContent) {
- return async function (dispatch, getState) {
- try {
- const sessionId = getState().frontendSession.sessionId;
- const event = await dispatch(
- sendHttpRequest(api.saveMessageForAuthor(sessionId, messageContent))
- );
- dispatch({ type: types.SAVE_MESSAGE_FOR_AUTHOR_SUCCESS, payload: event });
- return event;
- } catch (error) {
- throw error;
- }
- };
-}
diff --git a/src/features/messageForAuthor/actionTypes.js b/src/features/messageForAuthor/actionTypes.js
deleted file mode 100644
index 71d7550..0000000
--- a/src/features/messageForAuthor/actionTypes.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export const SAVE_MESSAGE_FOR_AUTHOR_SUCCESS =
- "SAVE_MESSAGE_FOR_AUTHOR_SUCCESS";
diff --git a/src/features/messageForAuthor/api.js b/src/features/messageForAuthor/api.js
deleted file mode 100644
index 734599c..0000000
--- a/src/features/messageForAuthor/api.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import { post } from "../../api/axiosApi";
-const baseUrl = process.env.REVERSE_PROXY_API_URL;
-
-const saveMessageForAuthor = (sessionId, messageContent) =>
- post(`${baseUrl}/system/message-for-author`, { sessionId, messageContent });
-
-export default {
- saveMessageForAuthor
-};
diff --git a/src/features/messageForAuthor/components/MessageForAuthorContainer.js b/src/features/messageForAuthor/components/MessageForAuthorContainer.js
deleted file mode 100644
index 977efd2..0000000
--- a/src/features/messageForAuthor/components/MessageForAuthorContainer.js
+++ /dev/null
@@ -1,66 +0,0 @@
-import React, { useState } from "react";
-import { connect } from "react-redux";
-import { bindActionCreators } from "redux";
-import PropTypes from "prop-types";
-import MessageForAuthorDialog from "./MessageForAuthorDialog";
-import { saveMessageForAuthor } from "../actionCreators";
-import { showInfo, showError } from "../../snackbar/actionCreators";
-import { useTranslation } from "react-i18next";
-
-const MessageForAuthorContainer = ({ actions, open, handleClose }) => {
- const [messageForAuthor, setMessageForAuthor] = useState("");
- const { t } = useTranslation();
-
- const onMessageForAuthorChanged = (event) => {
- const value = event.target.value;
- setMessageForAuthor(value);
- };
-
- const saveMessage = () => {
- actions
- .saveMessageForAuthor(messageForAuthor)
- .then((event) => {
- if (event.success) actions.showInfo(t("Notifications.MessageSaved"));
- else actions.showError(event.message);
- })
- .catch((error) => {
- actions.showError(error);
- });
- setMessageForAuthor("");
- handleClose();
- };
-
- return (
-