Adds support for public routes on shared boards (#22710)
* Adds support for public routes on shared boards * Fix linter * Address review comments * Update playbooks registerProduct call * Use boards product config for setting * update additional product locations for parameter changes * fixes for read-only when logged in * turn off global header and don't initialize plugin if shared board * fix unit tests * revert package-lock.json * more fixes * Remove FF check for system console setting for boards * update tests, Product boards is displayed in system console * only check products section of config * update test for config change --------- Co-authored-by: Scott Bishel <scott.bishel@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
71923fe311
Коммит
4cc2fed079
@@ -41,7 +41,7 @@ type Props = {
|
||||
*
|
||||
* Only supported when pluggableName is "Product".
|
||||
*/
|
||||
subComponentName?: 'mainComponent' | 'headerCentreComponent' | 'headerRightComponent';
|
||||
subComponentName?: 'mainComponent' | 'publicComponent' | 'headerCentreComponent' | 'headerRightComponent';
|
||||
|
||||
/*
|
||||
* Accept any other prop to pass onto the plugin component
|
||||
|
||||
@@ -986,6 +986,7 @@ export default class PluginRegistry {
|
||||
'showTeamSidebar',
|
||||
'showAppBar',
|
||||
'wrapped',
|
||||
'publicComponent',
|
||||
], ({
|
||||
baseURL,
|
||||
switcherIcon,
|
||||
@@ -997,6 +998,7 @@ export default class PluginRegistry {
|
||||
showTeamSidebar = false,
|
||||
showAppBar = false,
|
||||
wrapped = true,
|
||||
publicComponent,
|
||||
}: Omit<ProductComponent, 'id' | 'pluginId'>) => {
|
||||
const id = generateId();
|
||||
|
||||
@@ -1016,6 +1018,7 @@ export default class PluginRegistry {
|
||||
showTeamSidebar,
|
||||
showAppBar,
|
||||
wrapped,
|
||||
publicComponent,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user