Merge pull request #3827 from emanuelschuetze/motion-pdf-default
Change default for motion export dialog.
This commit is contained in:
commit
bec7224c9b
@ -35,6 +35,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
|
|||||||
text: true,
|
text: true,
|
||||||
reason: true,
|
reason: true,
|
||||||
state: true,
|
state: true,
|
||||||
|
category: true,
|
||||||
submitters: true,
|
submitters: true,
|
||||||
votingresult: true,
|
votingresult: true,
|
||||||
motionBlock: true,
|
motionBlock: true,
|
||||||
|
@ -854,8 +854,14 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
var options = [
|
var options = [
|
||||||
{name: gettextCatalog.getString('Submitters'), id: 'submitters', disabled: disabled.submitters},
|
{name: gettextCatalog.getString('Submitters'), id: 'submitters', disabled: disabled.submitters},
|
||||||
{name: gettextCatalog.getString('State'), id: 'state', disabled: disabled.state},
|
{name: gettextCatalog.getString('State'), id: 'state', disabled: disabled.state},
|
||||||
{name: gettextCatalog.getString('Voting result'), id: 'votingresult', disabled: disabled.votingResult}
|
|
||||||
];
|
];
|
||||||
|
if (Config.get('motions_recommendations_by').value) {
|
||||||
|
options.push({
|
||||||
|
name: gettextCatalog.getString('Recommendation'),
|
||||||
|
id: 'recommendation',
|
||||||
|
disabled: disabled.recommendation
|
||||||
|
});
|
||||||
|
}
|
||||||
if (_.some(motions, function (motion) { return motion.category; })) {
|
if (_.some(motions, function (motion) { return motion.category; })) {
|
||||||
options.push({
|
options.push({
|
||||||
name: gettextCatalog.getString('Category'),
|
name: gettextCatalog.getString('Category'),
|
||||||
@ -877,13 +883,11 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
disabled: disabled.origin,
|
disabled: disabled.origin,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (Config.get('motions_recommendations_by').value) {
|
|
||||||
options.push({
|
options.push({
|
||||||
name: gettextCatalog.getString('Recommendation'),
|
name: gettextCatalog.getString('Voting result'),
|
||||||
id: 'recommendation',
|
id: 'votingresult',
|
||||||
disabled: disabled.recommendation
|
disabled: disabled.votingResult
|
||||||
});
|
});
|
||||||
}
|
|
||||||
return options;
|
return options;
|
||||||
};
|
};
|
||||||
if (!singleMotion) {
|
if (!singleMotion) {
|
||||||
@ -1085,6 +1089,7 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
text: true,
|
text: true,
|
||||||
reason: true,
|
reason: true,
|
||||||
state: true,
|
state: true,
|
||||||
|
category: true,
|
||||||
submitters: true,
|
submitters: true,
|
||||||
votingresult: true,
|
votingresult: true,
|
||||||
motionBlock: true,
|
motionBlock: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user