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

Fix extra state tab when exporting testcase tiddlers #8443

Closed

Conversation

Leilei332
Copy link
Contributor

Fix the apperance of extra state tab when exporting testcase tiddlers.

图片

Copy link

Confirmed: Leilei332 has already signed the Contributor License Agreement (see contributing.md)

@@ -72,7 +72,7 @@ code-body: yes
<%endif%>
<div class="tc-test-case-panes">
<div class="tc-test-case-source">
<$macrocall $name="tabs" tabsList="[all[tiddlers]sort[]] -[prefix[$:/state/]] -Description -Narrative -Output Output +[putfirst[]] -[has[plugin-type]]" state=<<state>> default="Output" template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"/>
<$macrocall $name="tabs" tabsList="[all[tiddlers]sort[]] -[prefix<state>] -[prefix[$:/state/popup/export]] -Description -Narrative -Output Output +[putfirst[]] -[has[plugin-type]]" state=<<state>> default="Output" template="$:/core/ui/testcases/DefaultTemplate/SourceTabs"/>
Copy link
Member

Choose a reason for hiding this comment

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

Since we are at it, I think we should also move the strange construction -Output Output +[putfirst[]] to the "front" of the filter string like so:

[all[tiddlers]sort[]] Output +[putfirst[]] which allows us to remove the -Output from the filter string.

@Jermolene -- what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

Yes that is clearer

@Leilei332
Copy link
Contributor Author

Since #8514 has been merged, this PR can be closed now.

@Leilei332 Leilei332 closed this Aug 18, 2024
@Leilei332 Leilei332 deleted the testcase-extra-state-tab branch August 18, 2024 23:44
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.

4 participants