Merge pull request #937 from ONLYOFFICE/bugfix/fixed-display-payments
Bugfix/fixed display payments
This commit is contained in:
commit
26d61fd378
@ -17,7 +17,7 @@ const MetadataUrlField = ({ labelText, name, placeholder, tooltipContent }) => {
|
||||
|
||||
return (
|
||||
<div className="metadata-field">
|
||||
<Text className="label" fontSize="13px" fontWeight={600}>
|
||||
<Text className="label" fontSize="13px" as="div" fontWeight={600}>
|
||||
{labelText}
|
||||
<HelpButton tooltipContent={tooltipContent} />
|
||||
</Text>
|
||||
|
@ -16,7 +16,7 @@ import { Base } from "@docspace/components/themes";
|
||||
const StyledUploadIcon = styled(UploadIcon)`
|
||||
path {
|
||||
stroke: ${(props) =>
|
||||
props.isDisabled
|
||||
props.disabled
|
||||
? props.theme.client.settings.integration.sso.iconButtonDisabled
|
||||
: props.theme.client.settings.integration.sso.iconButton} !important;
|
||||
}
|
||||
@ -34,6 +34,10 @@ const UploadXML = (props) => {
|
||||
uploadXml,
|
||||
} = props;
|
||||
|
||||
const isDisabledProp = {
|
||||
disabled: !enableSso || uploadXmlUrl.trim().length === 0 || isLoadingXml,
|
||||
};
|
||||
|
||||
return (
|
||||
<FieldContainer
|
||||
className="xml-input"
|
||||
@ -52,13 +56,7 @@ const UploadXML = (props) => {
|
||||
|
||||
<Button
|
||||
className="upload-button"
|
||||
icon={
|
||||
<StyledUploadIcon
|
||||
isDisabled={
|
||||
!enableSso || uploadXmlUrl.trim().length === 0 || isLoadingXml
|
||||
}
|
||||
/>
|
||||
}
|
||||
icon={<StyledUploadIcon {...isDisabledProp} />}
|
||||
isDisabled={
|
||||
!enableSso || uploadXmlUrl.trim().length === 0 || isLoadingXml
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ const PaymentsPage = ({
|
||||
currentTariffPlanTitle,
|
||||
tariffPlanTitle,
|
||||
expandArticle,
|
||||
setPortalQuota,
|
||||
}) => {
|
||||
const { t, ready } = useTranslation(["Payments", "Common", "Settings"]);
|
||||
|
||||
@ -152,9 +153,7 @@ const PaymentsPage = ({
|
||||
(async () => {
|
||||
moment.locale(language);
|
||||
|
||||
const requests = [];
|
||||
|
||||
requests.push(getSettingsPayment());
|
||||
const requests = [getSettingsPayment(), setPortalQuota()];
|
||||
|
||||
if (!currencySymbol && !startValue)
|
||||
requests.push(setPortalPaymentQuotas());
|
||||
@ -410,7 +409,11 @@ export default inject(({ auth, payments }) => {
|
||||
} = auth;
|
||||
const { showText: expandArticle } = settingsStore;
|
||||
|
||||
const { isFreeTariff, currentTariffPlanTitle } = currentQuotaStore;
|
||||
const {
|
||||
isFreeTariff,
|
||||
currentTariffPlanTitle,
|
||||
setPortalQuota,
|
||||
} = currentQuotaStore;
|
||||
const {
|
||||
isNotPaidPeriod,
|
||||
isPaidPeriod,
|
||||
@ -464,5 +467,6 @@ export default inject(({ auth, payments }) => {
|
||||
replaceFeaturesValues,
|
||||
portalPaymentQuotasFeatures,
|
||||
currentTariffPlanTitle,
|
||||
setPortalQuota,
|
||||
};
|
||||
})(withRouter(observer(PaymentsPage)));
|
||||
|
Loading…
Reference in New Issue
Block a user