mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 04:47:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -26,13 +26,13 @@ public partial class PluginInfoDialog : MSGComponentBase
|
||||
[Parameter]
|
||||
public IAvailablePlugin Plugin { get; set; } = null!;
|
||||
|
||||
private string TypeText => this.Plugin.Type.GetName();
|
||||
private string TypeText => this.Plugin.Type.Name;
|
||||
|
||||
private string AuthorsText => this.Plugin.Authors.Length > 0 ? string.Join(", ", this.Plugin.Authors) : this.T("No authors specified");
|
||||
|
||||
private string CategoriesText => this.Plugin.Categories.Length > 0 ? string.Join(", ", this.Plugin.Categories.Select(category => category.GetName())) : this.T("No categories specified");
|
||||
private string CategoriesText => this.Plugin.Categories.Length > 0 ? string.Join(", ", this.Plugin.Categories.Select(category => category.Name)) : this.T("No categories specified");
|
||||
|
||||
private string TargetGroupsText => this.Plugin.TargetGroups.Length > 0 ? string.Join(", ", this.Plugin.TargetGroups.Select(targetGroup => targetGroup.Name())) : this.T("No target groups specified");
|
||||
private string TargetGroupsText => this.Plugin.TargetGroups.Length > 0 ? string.Join(", ", this.Plugin.TargetGroups.Select(targetGroup => targetGroup.Name)) : this.T("No target groups specified");
|
||||
|
||||
/// <summary>
|
||||
/// The plugin states the time in UTC; the user reads it in their own time zone.
|
||||
|
||||
Reference in new issue
Block a user