mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
add ExtensionPoint to fileView-actionBar as ButtonGroup
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import type { File, Repository } from "@scm-manager/ui-types";
|
import type { File, Repository } from "@scm-manager/ui-types";
|
||||||
import { DateFromNow } from "@scm-manager/ui-components";
|
import { DateFromNow, ButtonGroup } from "@scm-manager/ui-components";
|
||||||
import FileSize from "../components/FileSize";
|
import FileSize from "../components/FileSize";
|
||||||
import injectSheet from "react-jss";
|
import injectSheet from "react-jss";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
@@ -96,7 +96,16 @@ class Content extends React.Component<Props, State> {
|
|||||||
/>
|
/>
|
||||||
<span className="is-word-break">{file.name}</span>
|
<span className="is-word-break">{file.name}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="media-right">{selector}</div>
|
<div className="buttons is-grouped">
|
||||||
|
<div className={classes.marginInHeader}>{selector}</div>
|
||||||
|
<ButtonGroup>
|
||||||
|
<ExtensionPoint
|
||||||
|
name="fileView.actionbar.right"
|
||||||
|
props={{ file }}
|
||||||
|
renderAll={true}
|
||||||
|
/>
|
||||||
|
</ButtonGroup>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user