Skip to content

Commit

Permalink
Rebase and manage conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Apr 4, 2023
1 parent e6d3fc3 commit d657df1
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,17 @@
/>
<div v-if="state.default_managed_folders">
<div v-if="isManagedGroupFolderSetUpFormInEdit">
<CheckboxRadioSwitch type="switch" :checked="isGroupfolderSetupAutomaticallyReady" @update:checked="changeGroupFolderSetUpState">
<NcCheckboxRadioSwitch type="switch" :checked="isGroupfolderSetupAutomaticallyReady" @update:checked="changeGroupFolderSetUpState">
<b>Automatically managed folders</b>
</CheckboxRadioSwitch>
</NcCheckboxRadioSwitch>
<div v-if="isGroupfolderSetupAutomaticallyReady === false" class="complete-without-groupfolders">
<p class="managed-folder-description">
{{
t('integration_openproject', 'We recommend using this functionality but is not mandatory. Please activate in case you want to use the automatic creation and management of project folders.')
}}
</p>
<div class="form-actions">
<Button type="primary"
<NcButton type="primary"
data-test-id="complete-without-projectfolders-form-btn"
@click="completeIntegrationWithoutGroupFolderSetUp">
<template #icon>
Expand All @@ -192,7 +192,7 @@
{{
t('integration_openproject', iskeepCurrentCompleteWithoutIntegration)
}}
</Button>
</NcButton>
</div>
</div>
<div v-else>
Expand All @@ -213,7 +213,7 @@
</p>
<ManagedFolderError v-if="groupFolderSetUpError !== null" :group-folder-set-up-error-message-description="this.groupFolderSetUpErrorMessageDescription" :group-folder-set-up-error="this.groupFolderSetUpError" />
<div class="form-actions">
<Button v-if="groupFolderSetUpError === null"
<NcButton v-if="groupFolderSetUpError === null"
type="primary"
data-test-id="complete-with-projectfolders-form-btn"
@click="checkForErrorOrSetUpOpenProjectGroupFolders">
Expand All @@ -222,8 +222,8 @@
<CheckBoldIcon v-else :size="20" />
</template>
{{ t('integration_openproject', iskeepCurrentCompleteIntegration) }}
</Button>
<Button v-else-if="groupFolderSetUpError"
</NcButton>
<NcButton v-else-if="groupFolderSetUpError"
type="primary"
data-test-id="complete-with-projectfolders-form-btn"
@click="checkForErrorOrSetUpOpenProjectGroupFolders">
Expand All @@ -232,7 +232,7 @@
<RestoreIcon v-else :size="20" />
</template>
{{ t('integration_openproject', 'Retry setup OpenProject user, group and folder') }}
</Button>
</NcButton>
</div>
</div>
</div>
Expand All @@ -245,14 +245,14 @@
group-folder-set-up-error-message-description="Please install the group folder to be able to use automatic managed folders or deactivate the automatically managed folders."
group-folder-set-up-error="The group folder app is not installed" />
<div class="form-actions">
<Button
<NcButton
data-test-id="reset-server-host-btn"
@click="setManagedGroupFolderSetUpToEditMode">
<template #icon>
<PencilIcon :size="20" />
</template>
{{ t('integration_openproject', 'Edit managed project folders') }}
</Button>
</NcButton>
</div>
</div>
</div>
Expand All @@ -279,7 +279,7 @@
with-inspection
value="" />
<div class="form-actions">
<Button v-if="isOpSystemPasswordFormInEdit"
<NcButton v-if="isOpSystemPasswordFormInEdit"
type="primary"
:disabled="!opSystemPassword"
data-test-id="submit-op-system-password-form-btn"
Expand All @@ -288,15 +288,15 @@
<CheckBoldIcon :size="20" />
</template>
{{ t('integration_openproject', 'Done, complete setup') }}
</Button>
<Button v-else
</NcButton>
<NcButton v-else
data-test-id="reset-op-system-password"
@click="resetOPSystemPassword">
<template #icon>
<AutoRenewIcon :size="20" />
</template>
{{ t('integration_openproject', 'Replace application password') }}
</Button>
</NcButton>
</div>
</div>
</div>
Expand Down Expand Up @@ -346,8 +346,7 @@ import CheckBox from '../components/settings/CheckBox.vue'
import SettingsTitle from '../components/settings/SettingsTitle.vue'
import { F_MODES } from '../utils.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import CheckboxRadioSwitch from '@nextcloud/vue/dist/Components/CheckboxRadioSwitch'
import AlertCircleOutline from 'vue-material-design-icons/AlertCircleOutline.vue'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch'
import ManagedFolderError from "./admin/ManagedFolderError.vue";
export default {
name: 'AdminSettings',
Expand All @@ -363,8 +362,7 @@ export default {
AutoRenewIcon,
RestoreIcon,
CheckBox,
CheckboxRadioSwitch,
AlertCircleOutline,
NcCheckboxRadioSwitch,
ManagedFolderError
},
data() {
Expand Down

0 comments on commit d657df1

Please sign in to comment.