diff --git a/src/components/DaemonConfig/DaemonConfigDetailsModal.vue b/src/components/DaemonConfig/DaemonConfigDetailsModal.vue index 4fc80044..fc9f82ce 100644 --- a/src/components/DaemonConfig/DaemonConfigDetailsModal.vue +++ b/src/components/DaemonConfig/DaemonConfigDetailsModal.vue @@ -20,9 +20,15 @@

{{ t('app_api', 'Deploy config') }}

{{ t('app_api', 'Docker network') }}: {{ daemon.deploy_config.net }}

{{ t('app_api', 'Nextcloud URL') }}: {{ daemon.deploy_config.nextcloud_url }}

-

- {{ t('app_api', 'HaProxy password') }}: - {{ daemon.deploy_config?.haproxy_password }} +

+ +

{{ t('app_api', 'GPUs support') }}: {{ daemon.deploy_config.computeDevice && daemon.deploy_config?.computeDevice?.id !== 'cpu' || false }} @@ -60,6 +66,7 @@ import { showSuccess, showError } from '@nextcloud/dialogs' import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' +import NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js' import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' import Connection from 'vue-material-design-icons/Connection.vue' @@ -71,6 +78,7 @@ export default { NcButton, NcNoteCard, NcLoadingIcon, + NcPasswordField, Connection, }, props: { @@ -130,4 +138,14 @@ export default { justify-content: space-between; margin: 20px 0; } + +.external-label { + display: flex; + align-items: center; + width: 100%; + + label { + margin-right: 5px; + } +} diff --git a/src/components/DaemonConfig/ManageDaemonConfigModal.vue b/src/components/DaemonConfig/ManageDaemonConfigModal.vue index d080ee10..825d9004 100644 --- a/src/components/DaemonConfig/ManageDaemonConfigModal.vue +++ b/src/components/DaemonConfig/ManageDaemonConfigModal.vue @@ -109,13 +109,14 @@ class="external-label" :aria-label="t('app_api', 'HaProxy password')"> - + :helper-text="haProxyPasswordHelperText" + autocomplete="off" /> + href="https://cloud-py-api.github.io/app_api/" + target="_blank" + :name="t('app_api', 'Documentation') + ' ↗'"> @@ -162,7 +163,6 @@ import DaemonDetails from '../components/Apps/DaemonDetails.vue' import ScopesDetails from '../components/Apps/ScopesDetails.vue' import { APPS_SECTION_ENUM } from '../constants/AppsConstants.js' -import { generateUrl } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' Vue.use(VueLocalStorage) @@ -277,9 +277,6 @@ export default { // For customers of the Nextcloud GmbH the app level will be set to `300` for apps that are supported in their subscription return this.apps.some(app => app.level === 300) }, - linkToAdminSettings() { - return generateUrl('/settings/admin/app_api') - }, }, watch: {