(plugin_name)
| 1118 | }; |
| 1119 | |
| 1120 | const reloadPlugin = async (plugin_name) => { |
| 1121 | try { |
| 1122 | const res = await pluginApi.reload(plugin_name); |
| 1123 | if (res.data.status === "error") { |
| 1124 | toast(res.data.message || tm("messages.reloadFailed"), "error"); |
| 1125 | return; |
| 1126 | } |
| 1127 | toast(tm("messages.reloadSuccess"), "success"); |
| 1128 | await getExtensions(); |
| 1129 | } catch (err) { |
| 1130 | toast(resolveErrorMessage(err, tm("messages.reloadFailed")), "error"); |
| 1131 | } |
| 1132 | }; |
| 1133 | |
| 1134 | const viewReadme = (plugin) => { |
| 1135 | readmeDialog.pluginName = plugin.name; |
nothing calls this directly
no test coverage detected