I added 2 custom buttons to load dump from file. I want to make individual confirmation message for two of them for k10 "k10", for k7 "k7". How to do that??
it is inav-configurator
here is snippets.

cli.js
$('.tab-cli .load-k10').on('click', function (event) {
            event.preventDefault();
            let previewArea = $("#snippetpreviewcontent textarea#preview");
            const filePath = path.join(__dirname, '..', '.dump', 'k10.txt');
            function executeSnippet() {
                const commands = previewArea.val();
                executeCommands(commands);
                self.GUI.snippetPreviewWindow.close();
                $('.cli-preloader').toggleClass('active');
                $('.backdrop .window .wrapper').css({
                    'opacity': '0',
                    'user-select': 'none',
                    '-webkit-user-select': 'none',
                    '-moz-user-select': 'none',
                    '-ms-user-select': 'none',
                    'pointer-events': 'none'
                });
                $('.tab-cli .copy').attr('disabled', true);
                $('.tab-cli .copy').prop('disabled', true);
                $('.tab-cli .copy').hide();
            }
        
            function previewCommandsK(result) {
                $(previewArea).css({'display': 'none'});
                previewArea.val(result);
                self.GUI.snippetPreviewWindow = new jBox("Modal", {
                    id: "snippetPreviewWindow",
                    theme: "NoticeFancy",
                    addClass: "RoiDark",
                    width: 'auto',
                    height: 'auto',
                    closeButton: 'title',
                    animation: false,
                    isolateScroll: false,
                    title: i18n.getMessage("cliConfirmSnippetDialogTitle"),
                    content: $('#snippetpreviewcontent'),
                    onCreated: () => $("#snippetpreviewcontent a.confirm").on('click', executeSnippet),
                });
                self.GUI.snippetPreviewWindow.open();
            }
......
                            }
                        });
                    }
                });
            }
        });

cli.html


        <div class="btn save_btn pull-right">
            <a class="cliDocsBtn" href="#" i18n="cliDocsBtn" target="_blank"></a>
            <a class="load" href="#" i18n="cliLoadFromFileBtn"></a>
            <a style="display:none !important;" class="save" href="#" i18n="cliSaveToFileBtn"></a>
            <a class="copy" href="#" i18n="cliCopyToClipboardBtn"></a>            
            <a class="clear" href="#" i18n="cliClearOutputHistoryBtn"></a>     
            <a class="diffall" href="#" i18n="cliDiffAllBtn"></a>  
            <a class="load-k7" href="#">K7</a>
            <a class="load-k10" href="#">K10</a>
        </div>
    </div>

    <!-- Snippet preview dialog -->
    <div id="snippetpreviewcontent" style="display: none">
        <div class="note">
            <div class="note_spacer">
                <p i18n="cliConfirmSnippetNote"></p>
            </div>
        </div>
        <textarea id="preview" cols="120" rows="20"></textarea>
        <div class="default_btn">
            <a class="confirm" href="#" i18n="cliConfirmSnippetBtn"></a>
        </div>
    </div>
</div>