mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 00:02:30 +00:00
fix: the unread-head warning reads as caution in the deploy drawer too, and the cross-kind refusal names a remedy
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
39abbb8cff
commit
d17f8fc111
@@ -862,7 +862,8 @@ async fn move_draft(
|
||||
// both, so this is the other item's path, not a teammate's copy of this one.
|
||||
format!(
|
||||
"'{new_path}' holds another user's {occupant} draft, and an app and a raw \
|
||||
app cannot share a path."
|
||||
app cannot share a path. Pick another path, or ask them to move or \
|
||||
discard theirs."
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -872,6 +872,7 @@
|
||||
{setPublishState}
|
||||
appPath={$appPath}
|
||||
{onLatest}
|
||||
{headUnknown}
|
||||
{savedApp}
|
||||
bind:summary={$summary}
|
||||
bind:customPath
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
appPath,
|
||||
customPath = $bindable(),
|
||||
onLatest,
|
||||
headUnknown = false,
|
||||
savedApp,
|
||||
summary = $bindable(),
|
||||
deploymentMsg = $bindable(),
|
||||
@@ -54,6 +55,9 @@
|
||||
appPath: string
|
||||
customPath: string | undefined
|
||||
onLatest: boolean
|
||||
/** The comparison behind `onLatest` could not read the deployed head, so the warning
|
||||
* is caution rather than an observed newer version. */
|
||||
headUnknown?: boolean
|
||||
savedApp: any
|
||||
summary: string
|
||||
deploymentMsg: string | undefined
|
||||
@@ -239,8 +243,15 @@
|
||||
</script>
|
||||
|
||||
{#if !onLatest}
|
||||
<Alert title="You're not on the latest app version. " type="warning">
|
||||
By deploying, you may overwrite changes made by other users. Press 'Deploy' to see diff.
|
||||
<Alert
|
||||
title={headUnknown
|
||||
? 'Could not check the deployed version. '
|
||||
: "You're not on the latest app version. "}
|
||||
type="warning"
|
||||
>
|
||||
{headUnknown
|
||||
? "Deploying may overwrite changes made by other users. Press 'Deploy' to see diff."
|
||||
: "By deploying, you may overwrite changes made by other users. Press 'Deploy' to see diff."}
|
||||
</Alert>
|
||||
<div class="py-2"></div>
|
||||
{/if}
|
||||
|
||||
@@ -791,6 +791,7 @@
|
||||
{setPublishState}
|
||||
{appPath}
|
||||
{onLatest}
|
||||
{headUnknown}
|
||||
{savedApp}
|
||||
rawApp
|
||||
operatingWorkspace={opWorkspace}
|
||||
|
||||
Reference in New Issue
Block a user