fix(metablogizer): Use emancipated flag for Expose/Unpublish button

- Changed button logic from exp.vhost_exists to exp.emancipated
- Non-emancipated sites now correctly show "Expose" button
- Emancipated sites show "Unpublish" button
- vhost_exists was incorrectly true for some non-emancipated sites

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-25 12:14:26 +01:00
parent 3b32d631cb
commit ed0c95f8da

View File

@ -201,8 +201,8 @@ return view.extend({
'title': _('Upload content'),
'click': ui.createHandlerFn(self, 'showUploadModal', site)
}, _('Upload')),
// Expose/Unpublish button
exp.vhost_exists ?
// Expose/Unpublish button - use emancipated flag, not vhost_exists
exp.emancipated ?
E('button', {
'class': 'cbi-button cbi-button-remove',
'style': 'padding:0.25em 0.5em; margin:2px',