Add missing comments to types/plugins/user_setttings.ts (#26038)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
98a2fe8e2d
Коммит
f50118239a
@@ -11,14 +11,24 @@ export type PluginConfiguration = {
|
|||||||
|
|
||||||
/** URL to the icon to show in the UI. No icon will show the plug outline icon. */
|
/** URL to the icon to show in the UI. No icon will show the plug outline icon. */
|
||||||
icon?: string;
|
icon?: string;
|
||||||
sections: PluginConfigurationSection[];
|
|
||||||
|
/** Action that will appear at the beginning of the plugin settings tab */
|
||||||
action?: PluginConfigurationAction;
|
action?: PluginConfigurationAction;
|
||||||
|
sections: PluginConfigurationSection[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type PluginConfigurationAction = {
|
export type PluginConfigurationAction = {
|
||||||
|
|
||||||
|
/** Text shown as the title of the action */
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
/** Text shown as the body of the action */
|
||||||
text: string;
|
text: string;
|
||||||
|
|
||||||
|
/** Text shown at the button */
|
||||||
buttonText: string;
|
buttonText: string;
|
||||||
|
|
||||||
|
/** This function is called when the button on the action is clicked */
|
||||||
onClick: () => void;
|
onClick: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user