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:
parent
3b32d631cb
commit
ed0c95f8da
@ -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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user