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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-01-29 18:53:39 +0300
committerdartcafe <github@dartcafe.de>2020-01-29 18:53:39 +0300
commit72bd76c37c94853464b8f32bec747c8823d2d440 (patch)
tree69ac7bf8a6876c7ba4929364e2c5ad01e8b4964e
parent4add1467e4dde4bdb9a425cdbbf1c1ed12d5af25 (diff)
renamed component
-rw-r--r--src/js/components/Base/PollItemDate.vue (renamed from src/js/components/Base/DatePollItem.vue)2
-rw-r--r--src/js/components/Base/PollItemText.vue (renamed from src/js/components/Base/TextPollItem.vue)2
-rw-r--r--src/js/components/SideBar/SideBarTabDateOptions.vue6
-rw-r--r--src/js/components/SideBar/SideBarTabTextOptions.vue6
-rw-r--r--src/js/components/VoteTable/VoteList.vue12
5 files changed, 14 insertions, 14 deletions
diff --git a/src/js/components/Base/DatePollItem.vue b/src/js/components/Base/PollItemDate.vue
index 4791f672..cec4691a 100644
--- a/src/js/components/Base/DatePollItem.vue
+++ b/src/js/components/Base/PollItemDate.vue
@@ -33,7 +33,7 @@
import { mapState } from 'vuex'
export default {
- name: 'DatePollItem',
+ name: 'PollItemDate',
props: {
option: {
diff --git a/src/js/components/Base/TextPollItem.vue b/src/js/components/Base/PollItemText.vue
index ccbb952c..635d168e 100644
--- a/src/js/components/Base/TextPollItem.vue
+++ b/src/js/components/Base/PollItemText.vue
@@ -33,7 +33,7 @@
import { mapState } from 'vuex'
export default {
- name: 'TextPollItem',
+ name: 'PollItemText',
props: {
option: {
diff --git a/src/js/components/SideBar/SideBarTabDateOptions.vue b/src/js/components/SideBar/SideBarTabDateOptions.vue
index c8e9b154..d7e85842 100644
--- a/src/js/components/SideBar/SideBarTabDateOptions.vue
+++ b/src/js/components/SideBar/SideBarTabDateOptions.vue
@@ -54,7 +54,7 @@
<label class="title icon-calendar">
{{ t('polls', 'Available Options') }}
</label>
- <DatePollItem v-for="(option) in sortedOptions"
+ <PollItemDate v-for="(option) in sortedOptions"
:key="option.id"
:option="option"
@remove="removeOption(option)" />
@@ -65,14 +65,14 @@
<script>
import { DatetimePicker, Multiselect } from '@nextcloud/vue'
import { mapGetters, mapState } from 'vuex'
-import DatePollItem from '../Base/DatePollItem'
+import PollItemDate from '../Base/PollItemDate'
export default {
name: 'SideBarTabDateOptions',
components: {
Multiselect,
- DatePollItem,
+ PollItemDate,
DatetimePicker
},
diff --git a/src/js/components/SideBar/SideBarTabTextOptions.vue b/src/js/components/SideBar/SideBarTabTextOptions.vue
index 57a97437..435539d1 100644
--- a/src/js/components/SideBar/SideBarTabTextOptions.vue
+++ b/src/js/components/SideBar/SideBarTabTextOptions.vue
@@ -33,7 +33,7 @@
<label class="title icon-calendar">
{{ t('polls', 'Available Options') }}
</label>
- <TextPollItem v-for="(option) in sortedOptions" :key="option.id" :option="option"
+ <PollItemText v-for="(option) in sortedOptions" :key="option.id" :option="option"
@remove="removeOption(option)" />
</ul>
</div>
@@ -41,12 +41,12 @@
<script>
import { mapGetters, mapState } from 'vuex'
-import TextPollItem from '../Base/TextPollItem'
+import PollItemText from '../Base/PollItemText'
export default {
name: 'SideBarTabTextOptions',
components: {
- TextPollItem
+ PollItemText
},
data() {
diff --git a/src/js/components/VoteTable/VoteList.vue b/src/js/components/VoteTable/VoteList.vue
index 256b12c5..7fe8e4d8 100644
--- a/src/js/components/VoteTable/VoteList.vue
+++ b/src/js/components/VoteTable/VoteList.vue
@@ -28,8 +28,8 @@
:user-id="acl.userId"
:option="option"
@voteClick="setVote(option, acl.userId)" />
- <TextPollItem v-if="poll.type === 'textPoll'" :option="option" />
- <DatePollItem v-if="poll.type === 'datePoll'" :option="option" />
+ <PollItemText v-if="poll.type === 'textPoll'" :option="option" />
+ <PollItemDate v-if="poll.type === 'datePoll'" :option="option" />
<div class="counter">
<div v-if="yesVotes(option.pollOptionText)" class="yes" :style="{ flex: yesVotes(option.pollOptionText) }">
@@ -49,16 +49,16 @@
</template>
<script>
-import TextPollItem from '../Base/TextPollItem'
-import DatePollItem from '../Base/DatePollItem'
+import PollItemText from '../Base/PollItemText'
+import PollItemDate from '../Base/PollItemDate'
import VoteTableItem from './VoteTableItem'
import { mapState, mapGetters } from 'vuex'
export default {
name: 'VoteTable',
components: {
- DatePollItem,
- TextPollItem,
+ PollItemDate,
+ PollItemText,
VoteTableItem
},