View | Details | Raw Unified | Return to bug 43037
Collapse All | Expand All

(-)a/ucs-school-umc-computerroom/umc/js/computerroom/SettingsDialog.js (-1 / +6 lines)
 Lines 94-100   define([ Link Here 
94
				label: _('Share access'),
94
				label: _('Share access'),
95
				description: _('Defines restriction for the share access'),
95
				description: _('Defines restriction for the share access'),
96
				staticValues: [
96
				staticValues: [
97
					{ id: 'home', label: _('Home directory only') },
97
					{ id: 'home', label: this.exam ? _('Exam files only') : _('Home directory only') },
98
					{ id: 'all', label: _('Default (no restrictions)') }
98
					{ id: 'all', label: _('Default (no restrictions)') }
99
				]
99
				]
100
			}, {
100
			}, {
 Lines 163-168   define([ Link Here 
163
		},
163
		},
164
164
165
		update: function() {
165
		update: function() {
166
			// resetting the static values of the shareMode ComboBox to display label changes due to this.exam
167
			this._form.getWidget("shareMode").set("staticValues", [
168
				{ id: 'home', label: this.exam ? _('Exam files only') : _('Home directory only') },
169
				{ id: 'all', label: _('Default (no restrictions)') }
170
			]);
166
			// load settings and update form
171
			// load settings and update form
167
			return this.umcpCommand('computerroom/settings/get').then(lang.hitch(this, function(response) {
172
			return this.umcpCommand('computerroom/settings/get').then(lang.hitch(this, function(response) {
168
				tools.forIn(response.result, function(key, value) {
173
				tools.forIn(response.result, function(key, value) {
(-)a/ucs-school-umc-exam/umc/js/schoolexam.js (-1 / +1 lines)
 Lines 280-286   define([ Link Here 
280
					description: _( 'Defines restriction for the share access' ),
280
					description: _( 'Defines restriction for the share access' ),
281
					staticValues: [{
281
					staticValues: [{
282
						id: 'home',
282
						id: 'home',
283
						label : _('Restrict access to home directory')
283
						label : _('Exam files only')
284
					}, {
284
					}, {
285
						id: 'all',
285
						id: 'all',
286
						label : _('Allow access to all shares')
286
						label : _('Allow access to all shares')

Return to bug 43037