Move selector to auth

This commit is contained in:
Vladislav Makhov 2020-10-27 14:47:07 +03:00
parent 81f0342127
commit 3b6883595a
3 changed files with 7 additions and 6 deletions

View File

@ -88,8 +88,7 @@ import {
getMyFolderId,
getTooltipLabel,
getIsPrivacyFolder,
getPrivacyInstructionsLink,
getOrganizationName
getPrivacyInstructionsLink
} from "../../../../../store/files/selectors";
import { SharingPanel, OperationsPanel } from "../../../../panels";
const {
@ -97,6 +96,7 @@ const {
getSettings,
getCurrentUser,
isEncryptionSupport,
getOrganizationName
} = store.auth.selectors;
//import { getFilterByLocation } from "../../../../../helpers/converters";
//import config from "../../../../../../package.json";

View File

@ -985,10 +985,6 @@ export const getPrivacyInstructionsLink = (state) => {
return state.files.privacyInstructions;
}
export const getOrganizationName = (state) => {
return state.auth.settings.organizationName;
}
export const getHeaderVisible = createSelector(
getSelectionLength,
getSelected,

View File

@ -185,3 +185,8 @@ export const isEncryptionSupport = createSelector([getSettings], (settings) => {
const { isEncryptionSupport } = settings;
return isEncryptionSupport || false;
});
export const getOrganizationName = createSelector([getSettings], (settings) => {
const { organizationName } = settings;
return organizationName;
});