Fixed Bug 67149 - Mobile. The Actions tab in the file context menu does not open.

This commit is contained in:
Vlada Gazizova 2024-03-29 14:35:52 +03:00
parent bbfcf5cf2d
commit ef01d4eb69

View File

@ -1554,15 +1554,28 @@ class ContextOptionsStore {
const pluginItems = this.onLoadPlugins(item);
if (pluginItems.length > 0) {
options.splice(1, 0, {
id: "option_plugin-actions",
key: "plugin_actions",
label: t("Common:Actions"),
icon: PluginActionsSvgUrl,
disabled: false,
if (isDesktop()) {
options.splice(1, 0, {
id: "option_plugin-actions",
key: "plugin_actions",
label: t("Common:Actions"),
icon: PluginActionsSvgUrl,
disabled: false,
onLoad: () => this.onLoadPlugins(item),
});
onLoad: () => this.onLoadPlugins(item),
});
} else {
pluginItems.forEach((plugin) => {
options.splice(1, 0, {
id: `option_${plugin.key}`,
key: plugin.key,
label: plugin.label,
icon: plugin.icon,
disabled: false,
onClick: plugin.onClick,
});
});
}
}
const { isCollaborator } = this.userStore?.user || {