mirror of
https://github.com/harness/drone.git
synced 2025-05-17 01:20:13 +08:00
[UI] hide refresh button in readonly mode (#627)
This commit is contained in:
parent
032a7a89c8
commit
40fdb462c2
@ -327,7 +327,7 @@ export const Changes: React.FC<ChangesProps> = ({
|
|||||||
/>
|
/>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Render when={prHasChanged}>
|
<Render when={prHasChanged && !readOnly}>
|
||||||
<PlainButton
|
<PlainButton
|
||||||
text={getString('refresh')}
|
text={getString('refresh')}
|
||||||
className={css.refreshBtn}
|
className={css.refreshBtn}
|
||||||
|
Loading…
Reference in New Issue
Block a user