Updates on shares list
This commit is contained in:
Родитель
541612d271
Коммит
2aa589320d
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -141,10 +141,9 @@
|
|||
|
||||
</div>
|
||||
<share-div id="share-list" class="configBox flex-column oneline"
|
||||
:placeholder="t('polls', 'Name of user or group')"
|
||||
:active-shares="poll.shares"
|
||||
v-show="poll.event.access === 'select'"
|
||||
:shares="poll.shares"/>
|
||||
:placeholder="t('polls', 'Name of user or group')"
|
||||
v-show="poll.event.access === 'select'"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -44,19 +44,12 @@
|
|||
Multiselect
|
||||
},
|
||||
|
||||
props: {
|
||||
placeholder: {
|
||||
type: String
|
||||
},
|
||||
activeShares: {
|
||||
type: Array
|
||||
}
|
||||
},
|
||||
props: ['placeholder', 'activeShares'],
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
query: '',
|
||||
shares: [],
|
||||
query: '',
|
||||
users: [],
|
||||
siteUsersListOptions: {
|
||||
getUsers: true,
|
||||
|
@ -68,11 +61,10 @@
|
|||
created: function() {
|
||||
this.loadSiteUsers();
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
sortedShares: function() {
|
||||
return this.shares.sort(this.sortByDisplayname);
|
||||
return this.activeShares.sort(this.sortByDisplayname)
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -97,7 +89,12 @@
|
|||
return 0;
|
||||
}
|
||||
|
||||
},
|
||||
watch: {
|
||||
activeShares(value) {
|
||||
this.shares = value.slice(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
$owner = $poll->getOwner();
|
||||
|
||||
$expiry_style = '';
|
||||
$participated = $_['votes'];
|
||||
$participated = $_['votes'];
|
||||
$participated_class = 'partic_no';
|
||||
$participated_title = 'You did not vote';
|
||||
$participated_count = count($participated);
|
||||
|
|
Загрузка…
Ссылка в новой задаче