Before, clicking "new problem" (etc) would create a new block, then launch the editor. Now it launches the editor and then creates the new block only on save. This makes the "Cancel" button work as expected. Only affects libraries so far, not courses.
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
import { StrictDict } from '../../utils';
|
|
|
|
export const RequestStates = StrictDict({
|
|
inactive: 'inactive',
|
|
pending: 'pending',
|
|
completed: 'completed',
|
|
failed: 'failed',
|
|
} as const);
|
|
|
|
export const RequestKeys = StrictDict({
|
|
fetchVideos: 'fetchVideos',
|
|
fetchBlock: 'fetchBlock',
|
|
fetchImages: 'fetchImages',
|
|
fetchUnit: 'fetchUnit',
|
|
fetchStudioView: 'fetchStudioView',
|
|
createBlock: 'createBlock',
|
|
saveBlock: 'saveBlock',
|
|
uploadVideo: 'uploadVideo',
|
|
allowThumbnailUpload: 'allowThumbnailUpload',
|
|
uploadThumbnail: 'uploadThumbnail',
|
|
uploadTranscript: 'uploadTranscript',
|
|
deleteTranscript: 'deleteTranscript',
|
|
fetchCourseDetails: 'fetchCourseDetails',
|
|
updateTranscriptLanguage: 'updateTranscriptLanguage',
|
|
getTranscriptFile: 'getTranscriptFile',
|
|
checkTranscriptsForImport: 'checkTranscriptsForImport',
|
|
importTranscript: 'importTranscript',
|
|
uploadAsset: 'uploadAsset',
|
|
batchUploadAssets: 'batchUploadAssets',
|
|
fetchAdvancedSettings: 'fetchAdvancedSettings',
|
|
fetchVideoFeatures: 'fetchVideoFeatures',
|
|
getHandlerUrl: 'getHandlerUrl',
|
|
} as const);
|