mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
coverting the export button into a menu and wiring them up to the method
This commit is contained in:
parent
52b778c990
commit
c99be93bc5
@ -16,6 +16,7 @@
|
|||||||
</MudText>
|
</MudText>
|
||||||
</CardHeaderContent>
|
</CardHeaderContent>
|
||||||
<CardHeaderActions>
|
<CardHeaderActions>
|
||||||
|
<div class="d-flex">
|
||||||
@if (this.Content.FileAttachments.Count > 0)
|
@if (this.Content.FileAttachments.Count > 0)
|
||||||
{
|
{
|
||||||
<MudTooltip Text="@T("Number of attachments")" Placement="Placement.Bottom">
|
<MudTooltip Text="@T("Number of attachments")" Placement="Placement.Bottom">
|
||||||
@ -60,11 +61,20 @@
|
|||||||
|
|
||||||
@if (this.Role is ChatRole.AI)
|
@if (this.Role is ChatRole.AI)
|
||||||
{
|
{
|
||||||
<MudTooltip Text="@T("Export Chat to Microsoft Word")" Placement="Placement.Bottom">
|
<MudTooltip Text="@T("Export chat")" Placement="Placement.Bottom">
|
||||||
<MudIconButton Icon="@Icons.Material.Filled.Save" OnClick="@this.ExportToWord"/>
|
<MudMenu Icon="@Icons.Material.Filled.Save">
|
||||||
|
<MudMenuItem OnClick="@(() => this.ExportDocument(FileExportFormat.MICROSOFT_WORD))" Icon="@Icons.Custom.FileFormats.FileWord">
|
||||||
|
@T("Microsoft Word (.docx)")
|
||||||
|
</MudMenuItem>
|
||||||
|
<MudMenuItem OnClick="@(() => this.ExportDocument(FileExportFormat.OPEN_DOCUMENT_TEXT))" Icon="@Icons.Custom.FileFormats.FileDocument">
|
||||||
|
<MudTooltip Text="@T("LibreOffice / OpenOffice")">
|
||||||
|
@T("OpenDocument Text (.odt)")
|
||||||
|
</MudTooltip>
|
||||||
|
</MudMenuItem>
|
||||||
|
</MudMenu>
|
||||||
</MudTooltip>
|
</MudTooltip>
|
||||||
}
|
}
|
||||||
<MudCopyClipboardButton Content="@this.Content" Type="@this.Type" Size="Size.Medium"/>
|
<MudCopyClipboardButton Content="@this.Content" Type="@this.Type" Size="Size.Medium"/></div>
|
||||||
</CardHeaderActions>
|
</CardHeaderActions>
|
||||||
</MudCardHeader>
|
</MudCardHeader>
|
||||||
<MudCardContent>
|
<MudCardContent>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user