samplerSelect.js: update for new popup

8c7dbedaa14eaa41550fc3ba9ccd2d4aa8875d0a

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -3Ignore whitespace
public/scripts/samplerSelect.js+4 -3
@@ -10,6 +10,7 @@ import { power_user } from './power-user.js';
1010//import { getCfgPrompt } from './cfg-scale.js';
1111import { setting_names } from './textgen-settings.js';
1212import { renderTemplateAsync } from './templates.js';
13+import { Popup, POPUP_TYPE } from './popup.js';
1314
1415
1516const TGsamplerNames = setting_names;
@@ -21,8 +22,6 @@ let userDisabledSamplers, userShownSamplers;
2122
2223// Goal 1: show popup with all samplers for active API
2324async function showSamplerSelectPopup() {
24- const popup = $('#dialogue_popup');
25- popup.addClass('large_dialogue_popup');
2625 const html = $(document.createElement('div'));
2726 html.attr('id', 'sampler_view_list')
2827 .addClass('flex-container flexFlowColumn');
@@ -33,7 +32,7 @@ async function showSamplerSelectPopup() {
3332 listContainer.append(APISamplers);
3433 html.append(listContainer);
3534
3635 callPopupconst showPromise = new Popup(html, 'text'POPUP_TYPE.TEXT, null, { wide: true, large: true, allowVerticalScrolling: true }).show();
3736
3837 setSamplerListListeners();
3938
@@ -54,6 +53,8 @@ async function showSamplerSelectPopup() {
5453 power_user.selectSamplers.forceHidden = [];
5554 await validateDisabledSamplers();
5655 });
56+
57+ await showPromise;
5758}
5859
5960function setSamplerListListeners() {