admin/plugins: clearer message installing plugins
Massimo Melina committed
Dec 6, 2024 at 12:04 UTC
d3f2555ad26e6bcffa921dc2ac108e6b06e83196
1 file changed
+3
-1
admin/src/OnlinePlugins.ts
+3
-1
@@ -13,6 +13,7 @@ import { alertDialog, confirmDialog, toast } from './dialog'
13
import _ from 'lodash'
14
import { PLUGIN_ERRORS } from './PluginsPage'
15
import { Flex, IconBtn } from './mui'
16
+import { Box } from '@mui/material'
17
18
export default function OnlinePlugins() {
19
const [search, setSearch] = useState('')
@@ -80,11 +81,12 @@ export default function OnlinePlugins() {
81
confirm: h(Flex, { vert: true, alignItems: 'center' },
82
h(Warning, { color: 'warning', fontSize: 'large' }),
83
"Proceed only if you trust this plugin",
84
+ h(Box, { fontSize: '60%' }, "A plugin has the same power of any other software"),
85
),
86
async onClick() {
87
if (row.missing && !await confirmDialog("This will also install: " + _.map(row.missing, 'repo').join(', '))) return
88
const branch = row.branch || row.default_branch
87
- installPlugin(id, branch).catch((e: any) => {
89
+ return installPlugin(id, branch).catch((e: any) => {
90
if (e.code !== HTTP_FAILED_DEPENDENCY)
91
return alertDialog(e)
92
const msg = h(Fragment, {}, "This plugin has some dependencies unmet:",