there was a reason I wanted to use confirm, dammit

This commit is contained in:
LenAnderson 2024-07-15 18:25:48 -04:00
parent 27338ca867
commit d773174bad
2 changed files with 3 additions and 2 deletions

View File

@ -1569,6 +1569,7 @@ export class QuickReply {
if (this.icon) {
this.settingsDomIcon.classList.remove(this.icon);
}
this.settingsDomIcon.textContent = '…';
this.settingsDomIcon.classList.remove('fa-solid');
} else {
if (this.icon) {

View File

@ -1955,8 +1955,8 @@ export async function showFontAwesomePicker() {
dom.append(grid);
}
}
let value;
const picker = new Popup(dom, POPUP_TYPE.TEXT, null, { allowVerticalScrolling:true, okButton: 'Cancel' });
let value = '';
const picker = new Popup(dom, POPUP_TYPE.CONFIRM, null, { allowVerticalScrolling:true, okButton: 'No Icon', cancelButton: 'Cancel' });
await picker.show();
if (picker.result == POPUP_RESULT.AFFIRMATIVE) {
return value;