mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-18 09:08:30 +00:00
add update button
This commit is contained in:
parent
1da005e811
commit
0134a50ffa
@ -214,6 +214,19 @@ function App() {
|
|||||||
<>loading...</>
|
<>loading...</>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
dirty && activateCode();
|
||||||
|
pushLog('Code updated! Tip: You can also update the code by pressing ctrl+enter.');
|
||||||
|
}}
|
||||||
|
className={cx(
|
||||||
|
'hover:bg-gray-300',
|
||||||
|
!isEmbedded ? 'p-2' : 'px-2',
|
||||||
|
!dirty || !activeCode ? 'opacity-50' : '',
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
🔄 update
|
||||||
|
</button>
|
||||||
{!isEmbedded && (
|
{!isEmbedded && (
|
||||||
<button
|
<button
|
||||||
className="hover:bg-gray-300 p-2"
|
className="hover:bg-gray-300 p-2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user