[FIX] website: Published/Not Published button now dynamically updates
Prior to this fix, when you clicked on Publish or Not Published, the effect was immediate, but the button disappeared instead of just updating itself to the new value. Fixes opw 614561.
This commit is contained in:
parent
8f90636686
commit
40982f5ace
|
@ -373,11 +373,9 @@
|
||||||
|
|
||||||
<template id="publish_short">
|
<template id="publish_short">
|
||||||
<t groups="base.group_website_publisher" t-ignore="true">
|
<t groups="base.group_website_publisher" t-ignore="true">
|
||||||
<div t-attf-class="btn-group pull-right js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
|
<div t-attf-class="pull-right js_publish_management #{object.website_published and 'css_published' or 'css_unpublished'}" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-controller="publish_controller">
|
||||||
<button t-attf-class="btn btn-sm btn-#{object.website_published and 'success' or 'danger'} js_publish_btn">
|
<button class="btn btn-sm btn-danger js_publish_btn">Not Published</button>
|
||||||
<span class="css_publish">Not Published</span>
|
<button class="btn btn-sm btn-success js_publish_btn">Published</button>
|
||||||
<span class="css_unpublish">Published</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue