Skip to content

Commit

Permalink
Remove deprecated option "intranet_instance".
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed May 9, 2023
1 parent 2980042 commit 59f889c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
4 changes: 0 additions & 4 deletions lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ public function getSignedSaveMode(): string {
return $this->config->getAppValue('esig', 'signed_save_mode', self::DEFAULT_SAVE_MODE);
}

public function isIntranetInstance(): bool {
return $this->config->getAppValue('esig', 'intranet_instance', 'false') === 'true';
}

public function insecureSkipVerify(): bool {
return $this->config->getAppValue('esig', 'insecure_skip_verify', 'false') === 'true';
}
Expand Down
1 change: 0 additions & 1 deletion lib/Settings/Admin/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function getForm(): TemplateResponse {
]);
$this->initialState->provideInitialState('settings', [
'signed_save_mode' => $this->config->getSignedSaveMode(),
'intranet_instance' => $this->config->isIntranetInstance(),
'insecure_skip_verify' => $this->config->insecureSkipVerify(),
'background_verify' => $this->config->isBackgroundVerifyEnabled(),
'delete_max_age' => $this->config->getDeleteMaxAge(),
Expand Down
28 changes: 0 additions & 28 deletions src/components/AdminSettings/InstanceSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@
<template>
<NcSettingsSection :title="t('esig', 'Instance settings')"
:description="t('esig', 'Settings of the Nextcloud instance can be configured here.')">
<div>
<NcCheckboxRadioSwitch :checked.sync="settings.intranet_instance"
type="switch"
@update:checked="debounceUpdateIntranet">
{{ t('esig', 'The Nextcloud instance is private and can not be accessed from the internet.') }}
{{ t('esig', 'If this is set, links to the instance will not be sent to external users.') }}
</NcCheckboxRadioSwitch>
</div>
<div>
<NcCheckboxRadioSwitch :checked.sync="settings.insecure_skip_verify"
type="switch"
Expand Down Expand Up @@ -74,26 +66,6 @@ export default {
},
methods: {
debounceUpdateIntranet: debounce(function() {
this.updateIntranet()
}, 500),
updateIntranet() {
this.loading = true
const self = this
OCP.AppConfig.setValue('esig', 'intranet_instance', this.settings.intranet_instance, {
success() {
showSuccess(t('esig', 'Settings saved'))
self.loading = false
},
error() {
showError(t('esig', 'Could not save settings'))
self.loading = false
},
})
},
debounceUpdateInsecureVerify: debounce(function() {
this.updateInsecureSkipVerify()
}, 500),
Expand Down

0 comments on commit 59f889c

Please sign in to comment.