Add "browser default" theme on embed modal; make embed modal visible by all profile viewers.
This commit is contained in:
parent
287cd0db3e
commit
51f0e5c812
|
@ -148,6 +148,10 @@ const types = computed(() => {
|
|||
|
||||
const themes = computed(() => {
|
||||
return [
|
||||
{
|
||||
value: 'browser',
|
||||
text: $gettext('Browser Default')
|
||||
},
|
||||
{
|
||||
value: 'light',
|
||||
text: $gettext('Light')
|
||||
|
@ -180,7 +184,9 @@ const baseEmbedUrl = computed(() => {
|
|||
});
|
||||
|
||||
const embedUrl = computed(() => {
|
||||
return baseEmbedUrl.value + '?theme=' + selectedTheme.value;
|
||||
return (selectedTheme.value !== "browser")
|
||||
? baseEmbedUrl.value + '?theme=' + selectedTheme.value
|
||||
: baseEmbedUrl.value;
|
||||
});
|
||||
|
||||
const embedHeight = computed(() => {
|
||||
|
|
|
@ -48,10 +48,7 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div
|
||||
v-if="userCanManageProfile"
|
||||
class="card-actions"
|
||||
>
|
||||
<div class="card-actions">
|
||||
<a
|
||||
class="btn btn-outline-danger"
|
||||
@click.prevent="doOpenEmbed"
|
||||
|
@ -59,14 +56,16 @@
|
|||
<icon icon="code" />
|
||||
{{ $gettext('Embed Widgets') }}
|
||||
</a>
|
||||
<a
|
||||
class="btn btn-outline-danger"
|
||||
:data-confirm-title="$gettext('Disable public pages?')"
|
||||
:href="togglePublicPageUri"
|
||||
>
|
||||
<icon icon="close" />
|
||||
{{ $gettext('Disable') }}
|
||||
</a>
|
||||
<template v-if="userCanManageProfile">
|
||||
<a
|
||||
class="btn btn-outline-danger"
|
||||
:data-confirm-title="$gettext('Disable public pages?')"
|
||||
:href="togglePublicPageUri"
|
||||
>
|
||||
<icon icon="close" />
|
||||
{{ $gettext('Disable') }}
|
||||
</a>
|
||||
</template>
|
||||
</div>
|
||||
<embed-modal
|
||||
v-bind="$props"
|
||||
|
|
Loading…
Reference in New Issue