Added information when support is no longer available
This commit is contained in:
parent
af9457df7a
commit
e8751d21c0
@ -15,5 +15,6 @@
|
||||
"LoadingError": "Loading error",
|
||||
"LicenseError": "Licence is not valid. Make sure you choose the right file",
|
||||
"createdPortals": "Number of portals you've created",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
"OrganizationName": "ONLYOFFICE",
|
||||
"SupportNotAvailable": "Support is no longer available for your license since "
|
||||
}
|
||||
|
@ -15,5 +15,6 @@
|
||||
"LoadingError": "Ошибка загрузки",
|
||||
"LicenseError": "Лицензия не действительна. Убедитесь что вы выбрали верный файл",
|
||||
"createdPortals": " Порталы, созданные вами:",
|
||||
"OrganizationName": "ONLYOFFICE"
|
||||
"OrganizationName": "ONLYOFFICE",
|
||||
"SupportNotAvailable": "Техническая поддержка больше не доступна для вашей лицензии с "
|
||||
}
|
||||
|
@ -79,18 +79,20 @@ const HeaderContainer = ({
|
||||
require("moment/min/locales.min");
|
||||
moment.locale(culture);
|
||||
|
||||
// alert(expiresDate.getDate());
|
||||
// expiresDate = ;
|
||||
|
||||
const currentUserDate = moment().utcOffset(utcHoursOffset);
|
||||
|
||||
return moment(
|
||||
expiresDate.set("hour", 0).set("minute", 0).set("second", 0)
|
||||
moment.utc(expiresDate).set("hour", 0).set("minute", 0).set("second", 0)
|
||||
).isAfter(
|
||||
currentUserDate.set("hour", 0).set("minute", 0).set("second", 0)
|
||||
) ? (
|
||||
<StyledHeader>
|
||||
<Text className="payments-header">{t("Using")}</Text>
|
||||
<Text className="payments-header-additional_support">
|
||||
{t("SubscriptionAndUpdatesExpires")} {expiresDate.format("LLL")}
|
||||
{t("SubscriptionAndUpdatesExpires")}{" "}
|
||||
{moment.utc(expiresDate).format("LL")}
|
||||
{/* Техническая поддержка и обновления недоступны для вашей лицензии с 1
|
||||
марта 2021 года. */}
|
||||
</Text>
|
||||
@ -102,7 +104,8 @@ const HeaderContainer = ({
|
||||
<StyledHeader>
|
||||
<Text className="payments-header">{t("Using")}</Text>
|
||||
<Text className="payments-header-additional_support">
|
||||
{t("SubscriptionAndUpdatesExpires")} {}
|
||||
{t("SupportNotAvailable")}
|
||||
{moment.utc(expiresDate).startOf("day").format("dddd, MMMM D, YYYY")}
|
||||
</Text>
|
||||
</StyledHeader>
|
||||
);
|
||||
|
@ -1,6 +1,4 @@
|
||||
// import {} from "./actions";
|
||||
// import { state } from "asc-web-common";
|
||||
// const { culture } = state.auth.settings.culture;
|
||||
|
||||
const initialState = {
|
||||
salesEmail: "sales@onlyoffice.com",
|
||||
@ -8,7 +6,7 @@ const initialState = {
|
||||
buyUrl: "http://www.onlyoffice.com/post.ashx?type=buyenterprise",
|
||||
standaloneMode: true,
|
||||
currentLicense: {
|
||||
expiresDate: moment.utc("2020-09-01T23:59:59.000Z"),
|
||||
expiresDate: new Date("2020-08-31T23:59:59.000Z"),
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user