From d0df258c3107f17e3c30f1b15a97255c6aa61c45 Mon Sep 17 00:00:00 2001 From: 4Source <38220764+4Source@users.noreply.github.com> Date: Mon, 18 Mar 2024 20:32:01 +0100 Subject: [PATCH] [Fix] Rename (#4) Rename TroubleshootingModal -> PluginTroubleshootingModal --- ...{TroubleshootingModal.ts => PluginTroubleshootingModal.ts} | 2 +- src/settings/SettingsTab.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/modals/{TroubleshootingModal.ts => PluginTroubleshootingModal.ts} (98%) diff --git a/src/modals/TroubleshootingModal.ts b/src/modals/PluginTroubleshootingModal.ts similarity index 98% rename from src/modals/TroubleshootingModal.ts rename to src/modals/PluginTroubleshootingModal.ts index 2d87769..a3a569a 100644 --- a/src/modals/TroubleshootingModal.ts +++ b/src/modals/PluginTroubleshootingModal.ts @@ -4,7 +4,7 @@ import VarePlugin from 'src/main'; import { PluginInfo } from 'src/settings/SettingsInterface'; import { Release, fetchManifest, fetchReleases, repositoryRegEx } from 'src/util/GitHub'; -export class TroubleshootingModal extends Modal { +export class PluginTroubleshootingModal extends Modal { plugin: VarePlugin; pluginInfo: PluginInfo; onSubmit: (result: PluginInfo) => void; diff --git a/src/settings/SettingsTab.ts b/src/settings/SettingsTab.ts index b6936b3..dfeb8b0 100644 --- a/src/settings/SettingsTab.ts +++ b/src/settings/SettingsTab.ts @@ -4,7 +4,7 @@ import VarePlugin from 'src/main'; import { PluginData, PluginInfo } from './SettingsInterface'; import { PluginDataModal } from 'src/modals/PluginDataModal'; import { fetchCommmunityPluginList, fetchManifest, fetchReleases } from 'src/util/GitHub'; -import { TroubleshootingModal } from 'src/modals/TroubleshootingModal'; +import { PluginTroubleshootingModal } from 'src/modals/PluginTroubleshootingModal'; export class VareSettingTab extends PluginSettingTab { plugin: VarePlugin; @@ -166,7 +166,7 @@ export class VareSettingTab extends PluginSettingTab { .setTooltip('Troubleshoot plugin.') .setWarning() .onClick(() => { - new TroubleshootingModal(this.plugin, plugin, result => { + new PluginTroubleshootingModal(this.plugin, plugin, result => { this.pluginsList.every((value, index, array) => { if (value.id === result.id) { array[index] = result;