Move selector to auth
This commit is contained in:
parent
81f0342127
commit
3b6883595a
@ -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";
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user