Merge pull request #129 from ONLYOFFICE/bugfix/plugins-double-separator
Client:Plugins: fix plugin double separator
This commit is contained in:
commit
e16609200b
@ -87,7 +87,12 @@ const SettingsPluginDialog = ({
|
|||||||
setSaveButtonProps={setSaveButtonProps}
|
setSaveButtonProps={setSaveButtonProps}
|
||||||
setModalRequestRunning={setModalRequestRunning}
|
setModalRequestRunning={setModalRequestRunning}
|
||||||
/>
|
/>
|
||||||
<Info t={t} plugin={plugin} withDelete={withDelete} />
|
<Info
|
||||||
|
t={t}
|
||||||
|
plugin={plugin}
|
||||||
|
withDelete={withDelete}
|
||||||
|
withSeparator={!!customSettingsProps?.children}
|
||||||
|
/>
|
||||||
{withDelete && (
|
{withDelete && (
|
||||||
<Button
|
<Button
|
||||||
label={t("DeletePlugin")}
|
label={t("DeletePlugin")}
|
||||||
|
@ -45,7 +45,7 @@ const StyledInfo = styled.div`
|
|||||||
gap: 8px 24px;
|
gap: 8px 24px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Info = ({ t, plugin, withDelete }) => {
|
const Info = ({ t, plugin, withDelete, withSeparator }) => {
|
||||||
const locale = getCookie(LANGUAGE) || "en";
|
const locale = getCookie(LANGUAGE) || "en";
|
||||||
const uploadDate = plugin.createOn && getCorrectDate(locale, plugin.createOn);
|
const uploadDate = plugin.createOn && getCorrectDate(locale, plugin.createOn);
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ const Info = ({ t, plugin, withDelete }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledContainer withDelete={withDelete}>
|
<StyledContainer withDelete={withDelete}>
|
||||||
<StyledSeparator />
|
{withSeparator && <StyledSeparator />}
|
||||||
<Text fontSize={"14px"} fontWeight={600} lineHeight={"16px"} noSelect>
|
<Text fontSize={"14px"} fontWeight={600} lineHeight={"16px"} noSelect>
|
||||||
{t("Metadata")}
|
{t("Metadata")}
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
Reference in New Issue
Block a user