The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rocket.Chat/apps/meteor/client/views/admin/cloud/CloudRoute.js

18 lines
412 B

import { usePermission } from '@rocket.chat/ui-contexts';
import React from 'react';
import NotAuthorizedPage from '../../notAuthorized/NotAuthorizedPage';
[IMPROVE] Registration Experience (#27820) * chore: add register button to kebab menu * chore: change name section to registration * chore: use new register section * chore: add registered workspace modal * chore: Add workspace registration modal * chore: register workspace setup modal * chore: add modal to register workspace with token * chore: adding translations to workspace registration * chore: open registered modal when user clicks manage * chore: separate register workspace setup modals * feat: Add deregister flow * feat: register workspace connected with backend * feat: register with token connected with backend service * improve: Use workspace token when interacting with Marketplace (#27875) * add: use workspace token when interacting with Marketplace * fix: formatting --------- Co-authored-by: Thassio Victor <tvmcarvalho@gmail.com> Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> * improve: Remove Cloud Login restrictions from Marketplace (#27896) * feat: remove login button * feat: remove login button * fix: add developmentModeButton --------- Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> * Sync disconnect wishes * correct boolean to pass inverse If registerServer is true needs to pass false as they didn't chose not to be * added reconnect method * added reconnect method * add back the disconnect since the unregister code was reverted * chore: move register setup to another modal * chore: add connect workspace functionality * chore: finishing workspace registration * fix broken import * fix: add missing translations * fix: tests dependencies * fix: small lint issue * deregister / unregister -> disconnect in i18n * remove un-necessary sync * finish #27896 remove login requirement from marketplace * remove unused imports * fix: administration model list tests * deregister -> disconnect * fix: duplied translation * fix: iframe modal url token object error * fix: translations error, CS-353, CS-340 --------- Co-authored-by: Pedro Berleze Rorato <41977327+PedroRorato@users.noreply.github.com> Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> Co-authored-by: David Alen <davidalen.dev@gmail.com> Co-authored-by: Thassio Victor <tvmcarvalho@gmail.com> Co-authored-by: Aaron Ogle <aaron@geekgonecrazy.com> Co-authored-by: PedroRorato <pedroberorato@gmail.com>
3 years ago
import RegisterWorkspace from './RegisterWorkspace';
function CloudRoute() {
const canManageCloud = usePermission('manage-cloud');
if (!canManageCloud) {
return <NotAuthorizedPage />;
}
[IMPROVE] Registration Experience (#27820) * chore: add register button to kebab menu * chore: change name section to registration * chore: use new register section * chore: add registered workspace modal * chore: Add workspace registration modal * chore: register workspace setup modal * chore: add modal to register workspace with token * chore: adding translations to workspace registration * chore: open registered modal when user clicks manage * chore: separate register workspace setup modals * feat: Add deregister flow * feat: register workspace connected with backend * feat: register with token connected with backend service * improve: Use workspace token when interacting with Marketplace (#27875) * add: use workspace token when interacting with Marketplace * fix: formatting --------- Co-authored-by: Thassio Victor <tvmcarvalho@gmail.com> Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> * improve: Remove Cloud Login restrictions from Marketplace (#27896) * feat: remove login button * feat: remove login button * fix: add developmentModeButton --------- Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> * Sync disconnect wishes * correct boolean to pass inverse If registerServer is true needs to pass false as they didn't chose not to be * added reconnect method * added reconnect method * add back the disconnect since the unregister code was reverted * chore: move register setup to another modal * chore: add connect workspace functionality * chore: finishing workspace registration * fix broken import * fix: add missing translations * fix: tests dependencies * fix: small lint issue * deregister / unregister -> disconnect in i18n * remove un-necessary sync * finish #27896 remove login requirement from marketplace * remove unused imports * fix: administration model list tests * deregister -> disconnect * fix: duplied translation * fix: iframe modal url token object error * fix: translations error, CS-353, CS-340 --------- Co-authored-by: Pedro Berleze Rorato <41977327+PedroRorato@users.noreply.github.com> Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com> Co-authored-by: David Alen <davidalen.dev@gmail.com> Co-authored-by: Thassio Victor <tvmcarvalho@gmail.com> Co-authored-by: Aaron Ogle <aaron@geekgonecrazy.com> Co-authored-by: PedroRorato <pedroberorato@gmail.com>
3 years ago
return <RegisterWorkspace />;
}
export default CloudRoute;