windmill-components 1.389.1 → 1.389.2

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
- <Button
1015
- color="light"
1016
- variant="border"
1017
- size="xs"
1018
- on:click={() => {
1019
- if (!savedScript) {
1020
- return
1021
- }
1022
- diffDrawer?.openDrawer()
1023
- diffDrawer?.setDiff({
1024
- mode: 'normal',
1025
- deployed: savedScript,
1026
- draft: savedScript['draft'],
1027
- current: script
1028
- })
1029
- }}
1030
- disabled={!savedScript || !diffDrawer}
1031
- >
1032
- <div class="flex flex-row gap-2 items-center">
1033
- <DiffIcon size={14} />
1034
- <span class="hidden lg:flex"> Diff </span>
1035
- </div>
1036
- </Button>
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"
@@ -57,6 +57,7 @@ export type ScriptBuilderWhitelabelCustomUi = {
57
57
  settings?: boolean;
58
58
  extraDeployOptions?: boolean;
59
59
  editableSummary?: boolean;
60
+ diff?: boolean;
60
61
  };
61
62
  editorBar?: EditorBarUi;
62
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.389.1",
3
+ "version": "1.389.2",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",