Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AdminDelegating.vue « components « src « settings « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d669e26efd07d32f64664427cd4e597d8239efde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
	<div id="admin-right-sub-granting" class="section">
		<h2>{{ t('settings', 'Administration privileges') }}</h2>
		<p class="settings-hint">
			{{ t('settings', 'Here you can decide which group can access certain sections of the administration settings.') }}
		</p>

		<div class="setting-list">
			<div v-for="setting in availableSettings" :key="setting.class">
				<h3>{{ setting.sectionName }}</h3>
				<GroupSelect :available-groups="availableGroups" :authorized-groups="authorizedGroups" :setting="setting" />
			</div>
		</div>
	</div>
</template>

<script>
import GroupSelect from './AdminDelegation/GroupSelect'
import { loadState } from '@nextcloud/initial-state'

export default {
	name: 'AdminDelegating',
	components: {
		GroupSelect,
	},
	data() {
		const availableSettings = loadState('settings', 'available-settings')
		const availableGroups = loadState('settings', 'available-groups')
		const authorizedGroups = loadState('settings', 'authorized-groups')
		return {
			availableSettings,
			availableGroups,
			authorizedGroups,
		}
	},
}
</script>