|
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 |
}, { |
|
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) { |