27 lines
1.5 KiB
XML
27 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<t t-name="website.EditWebsiteSystray">
|
|
<div class="o_menu_systray_item o_edit_website_container d-none d-md-flex">
|
|
<a t-if="!translatable" href="#" class="o-website-btn-custo-primary btn position-relative d-flex align-items-center rounded-0 border-0 px-3" accesskey="a" t-on-click="startEdit">
|
|
<span t-if="this.state.isLoading" class="position-absolute top-50 start-50 translate-middle">
|
|
<i class="fa fa-refresh fa-spin"/>
|
|
</span>
|
|
<span t-out="label" t-attf-class="{{ this.state.isLoading ? 'opacity-0' : 'opacity-100' }}"/>
|
|
</a>
|
|
<Dropdown t-else="">
|
|
<button class="o-dropdown-toggle-custo o-website-btn-custo-primary btn rounded-0 border-0 px-3" data-hotkey="a">
|
|
<span t-out="label"/>
|
|
</button>
|
|
<t t-set-slot="content">
|
|
<DropdownItem onSelected="() => this.attemptStartTranslate()" class="'o_translate_website_dropdown_item'">
|
|
Translate - <span class="text-muted" t-out="this.websiteService.currentWebsite.metadata.langName"/>
|
|
</DropdownItem>
|
|
<DropdownItem onSelected="() => this.startEdit()" class="'o_edit_website_dropdown_item'">
|
|
Edit - <span class="text-muted" t-out="this.websiteService.currentWebsite.metadata.defaultLangName"/>
|
|
</DropdownItem>
|
|
</t>
|
|
</Dropdown>
|
|
</div>
|
|
</t>
|
|
</templates>
|