How to use the paraview-glance/src/store/types.Mutations.FILE_IDLE function in paraview-glance

To help you get started, we’ve selected a few paraview-glance examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kitware / paraview-glance / src / components / core / FileLoader / script.js View on Github external
closeAndTryToLoad(commit) {
        const allFilesErrored = this.files.reduce(
          (flag, { error }) => flag && error,
          true
        );
        if (!allFilesErrored) {
          commit(Mutations.SHOW_APP);
        }
        commit(Mutations.FILE_IDLE);
      },
    }),
github Kitware / paraview-glance / src / store / fileLoader.js View on Github external
function onLoadOkay(commit) {
  commit(Mutations.FILE_IDLE);
  commit(Mutations.SHOW_APP);
}
github Kitware / paraview-glance / src / components / core / FileLoader / script.js View on Github external
}
        return true;
      },
    }),
    mapGetters({
      totalProgress: Getters.FILE_TOTAL_PROGRESS,
      preloadCanLoad: Getters.FILE_RAW_FILES_LOADABLE,
      indeterminateProgress: Getters.FILE_INDETERMINATE_PROGRESS,
    })
  ),
  methods: Object.assign(
    mapMutations({
      setFileRawInfo: (commit, fileIndex, rawInfo) =>
        commit(Mutations.FILE_SET_RAW_INFO, { fileIndex, rawInfo }),

      cancel: Mutations.FILE_IDLE,

      closeAndTryToLoad(commit) {
        const allFilesErrored = this.files.reduce(
          (flag, { error }) => flag && error,
          true
        );
        if (!allFilesErrored) {
          commit(Mutations.SHOW_APP);
        }
        commit(Mutations.FILE_IDLE);
      },
    }),
    mapActions({
      openFiles: Actions.OPEN_FILES,
    }),
    {