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

publish tab fix #4370

Merged

Conversation

dzonidoo
Copy link
Collaborator

@dzonidoo dzonidoo commented Nov 9, 2023

SDESK-7079

@dzonidoo dzonidoo requested a review from petrjasek November 9, 2023 17:27
@petrjasek petrjasek added this to the 2.7 milestone Nov 10, 2023
@@ -48,7 +48,7 @@ export function AuthoringTopbarDirective(
dispatchInternalEvent('interactiveArticleActionStart', {
items: [scope.item],
tabs: ['send_to', 'publish'],
activeTab: 'publish',
activeTab: scope.item.flags.marked_for_not_publication ? 'send_to' : 'publish',
Copy link
Member

Choose a reason for hiding this comment

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

would use probably item.flags?.marked_... not sure if we have those flags set always

@dzonidoo dzonidoo requested a review from petrjasek November 10, 2023 12:30
@dzonidoo dzonidoo merged commit 6805fb4 into superdesk:authoring-react-post-broadcasting Nov 10, 2023
2 of 3 checks passed
@tomaskikutis
Copy link
Member

I was reviewing #4390 from @devketanpro and some questions about intended behavior came up which brought me to this PR - which seems incorrect @petrjasek. I was checking the JIRA ticket where it says that publish tab shouldn't be available in certain conditions. Then the primary thing we need to change is which tabs are available - set via
tabs: ['send_to', 'publish']. It was correct to adjust activeTab, but available tabs should have been adjusted as well.

I'll ask Ketan to improve it, posting here just to bring it to your attention Petr since you were reviewing it.

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.

3 participants