windmill-components 1.389.1 → 1.389.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1011,29 +1011,31 @@ function langToLanguage(lang) {
|
|
|
1011
1011
|
{/if}
|
|
1012
1012
|
|
|
1013
1013
|
<div class="flex flex-row gap-x-1 lg:gap-x-2">
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
<
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1014
|
+
{#if customUi?.topBar?.diff != false}
|
|
1015
|
+
<Button
|
|
1016
|
+
color="light"
|
|
1017
|
+
variant="border"
|
|
1018
|
+
size="xs"
|
|
1019
|
+
on:click={() => {
|
|
1020
|
+
if (!savedScript) {
|
|
1021
|
+
return
|
|
1022
|
+
}
|
|
1023
|
+
diffDrawer?.openDrawer()
|
|
1024
|
+
diffDrawer?.setDiff({
|
|
1025
|
+
mode: 'normal',
|
|
1026
|
+
deployed: savedScript,
|
|
1027
|
+
draft: savedScript['draft'],
|
|
1028
|
+
current: script
|
|
1029
|
+
})
|
|
1030
|
+
}}
|
|
1031
|
+
disabled={!savedScript || !diffDrawer}
|
|
1032
|
+
>
|
|
1033
|
+
<div class="flex flex-row gap-2 items-center">
|
|
1034
|
+
<DiffIcon size={14} />
|
|
1035
|
+
<span class="hidden lg:flex"> Diff </span>
|
|
1036
|
+
</div>
|
|
1037
|
+
</Button>
|
|
1038
|
+
{/if}
|
|
1037
1039
|
{#if customUi?.topBar?.settings != false}
|
|
1038
1040
|
<Button
|
|
1039
1041
|
color="light"
|