dialog: fix duplicate controls caused by flip issue
This commit is contained in:
@@ -270,11 +270,10 @@
|
|||||||
controlsAlign === 'end' && 'justify-end'
|
controlsAlign === 'end' && 'justify-end'
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{#if controls && typeof controls === 'function'}{@render controls()}{:else}
|
{#if controls && typeof controls === 'function'}{@render controls()}{:else if controls?.flip}
|
||||||
{#if controls.ok !== null}
|
{#if controls.ok !== null}
|
||||||
{@render dialogOkButton(getState(), controls.ok)}
|
{@render dialogOkButton(getState(), controls.ok)}
|
||||||
{/if}
|
{/if}
|
||||||
{#if controls?.flip}
|
|
||||||
{#if controls.cancel !== null}
|
{#if controls.cancel !== null}
|
||||||
{@render dialogCancelButton(getState(), controls.cancel)}
|
{@render dialogCancelButton(getState(), controls.cancel)}
|
||||||
{/if}
|
{/if}
|
||||||
@@ -286,7 +285,6 @@
|
|||||||
{@render dialogOkButton(getState(), controls.ok)}
|
{@render dialogOkButton(getState(), controls.ok)}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user