Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom blocks tab #4516

Merged
merged 2 commits into from
May 7, 2024
Merged

Custom blocks tab #4516

merged 2 commits into from
May 7, 2024

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented May 7, 2024

BOR-12
Add custom blocks tab, fix adding and deleting vocabularies with no reload bug

@thecalcc thecalcc requested a review from tomaskikutis May 7, 2024 09:08
@@ -110,6 +110,7 @@ export function VocabularyConfigController($scope: IScope, $route, $routeParams,
$scope.matchFieldTypeToTab = (tab, fieldType) =>
tab === 'vocabularies' && !fieldType || fieldType &&
(tab === 'text-fields' && fieldType === 'text' ||
tab === 'custom-editor-blocks' && fieldType === 'block' ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you rename block to custom-editor-block or editor-block?

* @return {Promise} {Object} vocabularies
*/
this.getVocabularies = function() {
if (_.isNil(self.vocabularies)) {
this.getVocabularies = function(vocabularyDeleted) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noCache would be more clear as an argument name. It'd even better to use an options object so usages are more clear too e.g. getVocabularies({noCache: true})

@thecalcc thecalcc requested a review from tomaskikutis May 7, 2024 09:54
@thecalcc thecalcc merged commit 9ae1cec into superdesk:develop May 7, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants