mirror of
https://github.com/ai-jani/about-blank.git
synced 2026-07-22 05:44:52 +00:00
feat: Display the names of icons already set as placeholders in icon suggester.
This commit is contained in:
parent
3a825e2cfc
commit
f15ca38db2
2 changed files with 8 additions and 2 deletions
|
|
@ -255,10 +255,13 @@ export class ActionSettingsModal extends Modal {
|
|||
const noIconId = "*No icon*";
|
||||
const iconIds = getIconIds();
|
||||
iconIds.unshift(noIconId);
|
||||
const placeholder = this.modAction.icon
|
||||
? this.modAction.icon
|
||||
: "Icon...";
|
||||
const response = await new IconSuggesterAsync(
|
||||
this.app,
|
||||
iconIds,
|
||||
"Icon...",
|
||||
placeholder,
|
||||
).openAndRespond();
|
||||
if (response.aborted) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -208,10 +208,13 @@ export class AboutBlankSettingTab extends PluginSettingTab {
|
|||
const noIconId = "*No icon*";
|
||||
const iconIds = getIconIds();
|
||||
iconIds.unshift(noIconId);
|
||||
const placeholder = this.plugin.settings.quickActionsIcon
|
||||
? this.plugin.settings.quickActionsIcon
|
||||
: "Icon...";
|
||||
const response = await new IconSuggesterAsync(
|
||||
this.app,
|
||||
iconIds,
|
||||
"Icon...",
|
||||
placeholder,
|
||||
).openAndRespond();
|
||||
if (response.aborted) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue