Skip to content

Commit

Permalink
fix: move admin setting iframe below server-config
Browse files Browse the repository at this point in the history
Signed-off-by: codewithvk <[email protected]>
  • Loading branch information
codewithvk committed Feb 2, 2025
1 parent 3a646f1 commit d295c3b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
{{ t('richdocuments', 'Collabora Online is a powerful LibreOffice-based online office suite with collaborative editing, which supports all major documents, spreadsheet and presentation file formats and works together with all modern browsers.') }}
</p>

<!-- New Collabora Admin Settings Section -->
<div id="admin-cool-frame-section">
<CoolFrame v-if="tokenGenerated"
:iframe-type="'admin'"
:public-wopi-url="settings.public_wopi_url"
:access-token="accessToken"
:access-token-t-t-l="accessTokenTTL"
:wopi-setting-base-url="wopiSettingBaseUrl" />
</div>

<div v-if="settings.wopi_url && settings.wopi_url !== ''">
<NcNoteCard v-if="serverError == 2" type="error">
<p>{{ t('richdocuments', 'Could not establish connection to the Collabora Online server.') }}</p>
Expand Down Expand Up @@ -227,6 +217,15 @@
</div>
</NcModal>

<div id="admin-cool-frame-section" class="section">
<CoolFrame v-if="tokenGenerated"
:iframe-type="'admin'"
:public-wopi-url="settings.public_wopi_url"
:access-token="accessToken"
:access-token-t-t-l="accessTokenTTL"
:wopi-setting-base-url="wopiSettingBaseUrl" />
</div>

<div v-if="isSetup" id="advanced-settings" class="section">
<h2>{{ t('richdocuments', 'Advanced settings') }}</h2>
<SettingsCheckbox :value="isOoxml"
Expand Down

0 comments on commit d295c3b

Please sign in to comment.