Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

functions.native.js 481B

123456789101112131415161718192021
  1. // @flow
  2. import { toState } from '../base/redux';
  3. export * from './functions.any';
  4. /**
  5. *
  6. * Returns true if polls feature is disabled.
  7. *
  8. * @param {(Function|Object)} stateful - The (whole) redux state, or redux's
  9. * {@code getState} function to be used to retrieve the state
  10. * features/base/config.
  11. * @returns {boolean}.
  12. */
  13. export function getDisablePolls(stateful: Object) {
  14. const state = toState(stateful['features/base/config']);
  15. return state.disablePolls;
  16. }