Skip to content

Commit

Permalink
fix(settings): remove iframe title and section
Browse files Browse the repository at this point in the history
Signed-off-by: codewithvk <[email protected]>
  • Loading branch information
codewithvk committed Jan 24, 2025
1 parent c49acd5 commit 235882e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
</p>

<!-- New Collabora Admin Settings Section -->
<div id="admin-cool-frame-section" class="section">
<h2>{{ t('richdocuments', 'Collabora Admin Settings') }}</h2>
<div id="admin-cool-frame-section">
<CoolFrame v-if="tokenGenerated"
:iframe-type="'admin'"
:public-wopi-url="settings.public_wopi_url"
Expand Down
8 changes: 6 additions & 2 deletions src/components/CoolFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<input type="hidden" name="access_token_ttl" :value="accessTokenTTL">
<input type="hidden" name="wopi_setting_base_url" :value="wopiSettingBaseUrl">
<input type="hidden" name="iframe_type" :value="iframeType">
<!-- TODO: Include any other necessary hidden inputs -->
<input type="hidden" name="css_variables" :value="cssVariables">
<!-- TODO: Include any other necessary hidden inputs - send css variables -->
</form>
<iframe :id="iframeName"
:name="iframeName"
Expand All @@ -25,6 +26,7 @@

<script>

import { generateCSSVarTokens } from '../helpers/coolParameters.js'
import { getCoolServerUrl } from '../helpers/url.js'

export default {
Expand Down Expand Up @@ -55,6 +57,7 @@ export default {
return {
iframeName: 'coolFrameIframe',
formAction: '',
cssVariables: generateCSSVarTokens(),
}
},
mounted() {
Expand All @@ -81,7 +84,8 @@ export default {
<style scoped>
.cool-frame-iframe {
width: 100%;
height: 600px;
border: none;
height: 60vh;
overflow-y: auto;
}
</style>
3 changes: 1 addition & 2 deletions src/components/PersonalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
</p>

<!-- user settings iframe -->
<div id="user-cool-frame-section" class="section">
<h2>{{ t('richdocuments', 'Collabora User Settings') }}</h2>
<div id="user-cool-frame-section">
<CoolFrame v-if="tokenGenerated"
:iframe-type="'user'"
:public-wopi-url="public_wopi_url"
Expand Down

0 comments on commit 235882e

Please sign in to comment.