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

new feature: ReuseTabService method of UpdateTitle #3793

Conversation

jeffersyuan1976
Copy link
Contributor

🤔 This is a ...

  • [√] New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

no issue link

💡 Background and solution

Sometimes, need UpdateTitle of reusetabs

📝 Changelog

Add UpdateTitle in reusetabservice

Language Changelog
🇺🇸 English UpdateTitle of ReuseTabService
🇨🇳 Chinese 更改重用标签页的Title

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

Copy link

github-actions bot commented Apr 11, 2024

Prepare preview

@@ -190,7 +190,15 @@ public void CreateTab(string pageUrl, RenderFragment? title = null)
_pageMap.TryAdd(pageUrl, new ReuseTabsPageItem() { Url = pageUrl, Title = title ?? pageUrl.ToRenderFragment(), CreatedAt = DateTime.MinValue });
OnStateHasChanged?.Invoke();
}

public void UpdateTitle(string pageUrl, RenderFragment? title = null)
Copy link
Member

Choose a reason for hiding this comment

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

The title for this method is not opt-in.

@ElderJames
Copy link
Member

We have Update() method to update all the state of reusetabs, so we don't need to update only title.

@ElderJames ElderJames closed this Aug 8, 2024
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