Skip to content

Commit 132d8e0

Browse files
authored
Merge pull request #5072 from lpranam/zotero_settings
zotero: remove zotero API key textbox
2 parents 84f003d + ef5009a commit 132d8e0

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

src/components/PersonalSettings.vue

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,6 @@
3434
</em>
3535
</p>
3636

37-
<!-- Zotero -->
38-
<div class="zotero-section">
39-
<p><strong>{{ t('richdocuments', 'Zotero') }}</strong></p>
40-
<template v-if="hasZoteroSupport">
41-
<div class="input-wrapper">
42-
<div class="zotero-inline">
43-
<div class="zotero-input-wrapper">
44-
<NcTextField id="zoteroAPIKeyField"
45-
:value="zoteroAPIKey"
46-
:label="t('richdocuments', 'Enter Zotero API Key')"
47-
@update:value="setZoteroAPIKey" />
48-
</div>
49-
<NcButton id="zoteroAPIKeySave"
50-
type="secondary"
51-
@click="saveZoteroAPIKey">
52-
{{ t('richdocuments', 'Save') }}
53-
</NcButton>
54-
<NcButton id="zoteroAPIKeyRemove"
55-
type="secondary"
56-
:title="t('richdocuments', 'Remove Zotero API Key')"
57-
@click="resetZoteroAPI">
58-
<DeleteIcon :size="20" />
59-
</NcButton>
60-
</div>
61-
<p>
62-
<em>
63-
{{ t('richdocuments', 'To use Zotero specify your API key here. You can create your API key in your') }}
64-
<a href="https://www.zotero.org/settings/keys" target="_blank">
65-
{{ t('richdocuments', 'Zotero account API settings.') }}
66-
</a>
67-
</em>
68-
</p>
69-
</div>
70-
</template>
71-
<p v-else>
72-
<em>
73-
{{ t('richdocuments', 'This instance does not support Zotero, because the feature is missing or disabled. Please contact the administration.') }}
74-
</em>
75-
</p>
76-
</div>
77-
7837
<!-- Document signing -->
7938
<div class="docsign-section">
8039
<p class="doc_sign_head">
@@ -158,7 +117,6 @@ export default {
158117
data() {
159118
return {
160119
templateFolder: this.initial.templateFolder || '',
161-
hasZoteroSupport: this.initial.hasZoteroSupport || false,
162120
hasSettingIframeSupport: this.initial.hasSettingIframeSupport || false,
163121
settingIframeUrl: this.initial.setting_iframe_url || '',
164122
zoteroAPIKey: this.initial.zoteroAPIKey || '',
@@ -202,9 +160,6 @@ export default {
202160
console.error('Failed to generate token for admin settings')
203161
}
204162
},
205-
setZoteroAPIKey(newVal) {
206-
this.zoteroAPIKey = newVal
207-
},
208163
async onTemplateSelectButtonClick() {
209164
OC.dialogs.filepicker(
210165
this.t('richdocuments', 'Select a personal template folder'),
@@ -226,15 +181,6 @@ export default {
226181
this.templateFolder = ''
227182
}
228183
},
229-
async saveZoteroAPIKey() {
230-
await this.updateSetting({ zoteroAPIKeyInput: this.zoteroAPIKey })
231-
},
232-
async resetZoteroAPI() {
233-
const success = await this.updateSetting({ zoteroAPIKeyInput: '' })
234-
if (success) {
235-
this.zoteroAPIKey = ''
236-
}
237-
},
238184
async setDocumentSigningCert(val) {
239185
const success = await this.updateSetting({ documentSigningCertInput: val })
240186
if (success) {
@@ -296,16 +242,6 @@ export default {
296242
gap: 1rem;
297243
}
298244
299-
.zotero-section p {
300-
margin-top: 5px !important;
301-
}
302-
303-
.zotero-inline {
304-
display: flex;
305-
align-items: center;
306-
gap: 1rem;
307-
}
308-
309245
.doc_sign_head {
310246
padding-top: 10px;
311247
padding-bottom: 5px;

0 commit comments

Comments
 (0)