projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21077: Add explicit START/STOP_WORKING to loading functions
[arvados-workbench2.git]
/
src
/
store
/
vocabulary
/
vocabulary-actions.ts
diff --git
a/src/store/vocabulary/vocabulary-actions.ts
b/src/store/vocabulary/vocabulary-actions.ts
index ceef5e6c79665f9bdfde98faeadbff126a9aecae..d73c01fe909f14aedc28d8a25b6a7229c7ae8afe 100644
(file)
--- a/
src/store/vocabulary/vocabulary-actions.ts
+++ b/
src/store/vocabulary/vocabulary-actions.ts
@@
-3,14
+3,13
@@
// SPDX-License-Identifier: AGPL-3.0
import { Dispatch } from 'redux';
// SPDX-License-Identifier: AGPL-3.0
import { Dispatch } from 'redux';
-import { ServiceRepository } from '
~/
services/services';
-import { propertiesActions } from '
~/
store/properties/properties-actions';
+import { ServiceRepository } from 'services/services';
+import { propertiesActions } from 'store/properties/properties-actions';
import { VOCABULARY_PROPERTY_NAME, DEFAULT_VOCABULARY } from './vocabulary-selectors';
import { VOCABULARY_PROPERTY_NAME, DEFAULT_VOCABULARY } from './vocabulary-selectors';
-import { isVocabulary } from '
~/
models/vocabulary';
+import { isVocabulary } from 'models/vocabulary';
export const loadVocabulary = async (dispatch: Dispatch, _: {}, { vocabularyService }: ServiceRepository) => {
const vocabulary = await vocabularyService.getVocabulary();
export const loadVocabulary = async (dispatch: Dispatch, _: {}, { vocabularyService }: ServiceRepository) => {
const vocabulary = await vocabularyService.getVocabulary();
-
dispatch(propertiesActions.SET_PROPERTY({
key: VOCABULARY_PROPERTY_NAME,
value: isVocabulary(vocabulary)
dispatch(propertiesActions.SET_PROPERTY({
key: VOCABULARY_PROPERTY_NAME,
value: isVocabulary(vocabulary)