Collapse deploy logs by default on app details page
This commit is contained in:
parent
8dab4231ea
commit
3c0adff880
1 changed files with 1 additions and 7 deletions
|
|
@ -368,7 +368,6 @@ pub async fn app_detail(
|
|||
.unwrap_or_default();
|
||||
|
||||
let container_state = get_container_status(&app_id).await;
|
||||
let latest_deploy_id = deploys.first().map(|d| d.id.as_str()).unwrap_or("");
|
||||
|
||||
let mut deploy_rows = String::new();
|
||||
for d in &deploys {
|
||||
|
|
@ -467,11 +466,7 @@ pub async fn app_detail(
|
|||
<script>
|
||||
const APP_ID = '{app_id}';
|
||||
|
||||
// Auto-open the latest deploy log on page load.
|
||||
window.addEventListener('DOMContentLoaded', () => {{
|
||||
const latest = '{latest_deploy_id}';
|
||||
if (latest) showLog(latest);
|
||||
}});
|
||||
// Deploy logs are collapsed by default; only open when triggered.
|
||||
|
||||
async function deploy() {{
|
||||
const r = await fetch('/api/apps/' + APP_ID + '/deploy', {{method:'POST'}});
|
||||
|
|
@ -563,7 +558,6 @@ pub async fn app_detail(
|
|||
secret = app.webhook_secret,
|
||||
deploy_rows = deploy_rows,
|
||||
env_rows = env_rows,
|
||||
latest_deploy_id = latest_deploy_id,
|
||||
c_badge = container_badge(&container_state),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue