refactor(editor): Clean all instances of isDesktopDeployment (#10884)

This commit is contained in:
Ricardo Espinoza
2024-09-20 08:24:08 -04:00
committed by GitHub
parent 693fb7e580
commit 26a653a79a
11 changed files with 7 additions and 113 deletions

View File

@@ -576,12 +576,8 @@ export const routes: RouteRecordRaw[] = [
settingsView: SettingsSso,
},
meta: {
middleware: ['authenticated', 'rbac', 'custom'],
middleware: ['authenticated', 'rbac'],
middlewareOptions: {
custom: () => {
const settingsStore = useSettingsStore();
return !settingsStore.isDesktopDeployment;
},
rbac: {
scope: 'saml:manage',
},
@@ -693,11 +689,7 @@ export const routes: RouteRecordRaw[] = [
custom: () => {
const settingsStore = useSettingsStore();
const ssoStore = useSSOStore();
return (
ssoStore.isEnterpriseSamlEnabled &&
!settingsStore.isCloudDeployment &&
!settingsStore.isDesktopDeployment
);
return ssoStore.isEnterpriseSamlEnabled && !settingsStore.isCloudDeployment;
},
},
telemetry: {