Skip to content

Commit da90bbd

Browse files
committed
chore(NotificationsSettings): move template
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 244cfa3 commit da90bbd

1 file changed

Lines changed: 55 additions & 55 deletions

File tree

src/components/ConversationSettings/NotificationsSettings.vue

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,6 @@
33
- SPDX-License-Identifier: AGPL-3.0-or-later
44
-->
55

6-
<template>
7-
<div class="app-settings-subsection">
8-
<h4 class="app-settings-section__subtitle">
9-
{{ t('spreed', 'Notifications') }}
10-
</h4>
11-
12-
<NcCheckboxRadioSwitch v-for="level in notificationLevels"
13-
:key="level.value"
14-
v-model="notificationLevel"
15-
:value="level.value.toString()"
16-
name="notification_level"
17-
type="radio"
18-
@update:model-value="setNotificationLevel">
19-
<span class="radio-button">
20-
<component :is="notificationLevelIcon(level.value)" />
21-
{{ level.label }}
22-
</span>
23-
</NcCheckboxRadioSwitch>
24-
25-
<NcCheckboxRadioSwitch v-if="showCallNotificationSettings"
26-
id="notification_calls"
27-
v-model="notifyCalls"
28-
type="switch"
29-
@update:model-value="setNotificationCalls">
30-
{{ t('spreed', 'Notify about calls in this conversation') }}
31-
</NcCheckboxRadioSwitch>
32-
33-
<NcCheckboxRadioSwitch v-if="supportImportantConversations"
34-
id="important"
35-
v-model="isImportant"
36-
aria-describedby="important-hint"
37-
type="switch"
38-
@update:model-value="toggleImportant">
39-
{{ t('spreed', 'Important conversation') }}
40-
</NcCheckboxRadioSwitch>
41-
42-
<p id="important-hint" class="notifications__hint">
43-
{{ t('spreed', '"Do not disturb" user status is ignored for important conversations') }}
44-
</p>
45-
46-
<NcCheckboxRadioSwitch v-if="supportSensitiveConversations"
47-
id="sensitive"
48-
v-model="isSensitive"
49-
aria-describedby="sensitive-hint"
50-
type="switch"
51-
@update:model-value="toggleSensitive">
52-
{{ t('spreed', 'Sensitive conversation') }}
53-
</NcCheckboxRadioSwitch>
54-
55-
<p id="sensitive-hint" class="notifications__hint">
56-
{{ t('spreed', 'Message preview will be disabled in conversation list and notifications') }}
57-
</p>
58-
</div>
59-
</template>
60-
616
<script>
627
import Account from 'vue-material-design-icons/Account.vue'
638
import VolumeHigh from 'vue-material-design-icons/VolumeHigh.vue'
@@ -170,6 +115,61 @@ export default {
170115
}
171116
</script>
172117

118+
<template>
119+
<div class="app-settings-subsection">
120+
<h4 class="app-settings-section__subtitle">
121+
{{ t('spreed', 'Notifications') }}
122+
</h4>
123+
124+
<NcCheckboxRadioSwitch v-for="level in notificationLevels"
125+
:key="level.value"
126+
v-model="notificationLevel"
127+
:value="level.value.toString()"
128+
name="notification_level"
129+
type="radio"
130+
@update:model-value="setNotificationLevel">
131+
<span class="radio-button">
132+
<component :is="notificationLevelIcon(level.value)" />
133+
{{ level.label }}
134+
</span>
135+
</NcCheckboxRadioSwitch>
136+
137+
<NcCheckboxRadioSwitch v-if="showCallNotificationSettings"
138+
id="notification_calls"
139+
v-model="notifyCalls"
140+
type="switch"
141+
@update:model-value="setNotificationCalls">
142+
{{ t('spreed', 'Notify about calls in this conversation') }}
143+
</NcCheckboxRadioSwitch>
144+
145+
<NcCheckboxRadioSwitch v-if="supportImportantConversations"
146+
id="important"
147+
v-model="isImportant"
148+
aria-describedby="important-hint"
149+
type="switch"
150+
@update:model-value="toggleImportant">
151+
{{ t('spreed', 'Important conversation') }}
152+
</NcCheckboxRadioSwitch>
153+
154+
<p id="important-hint" class="notifications__hint">
155+
{{ t('spreed', '"Do not disturb" user status is ignored for important conversations') }}
156+
</p>
157+
158+
<NcCheckboxRadioSwitch v-if="supportSensitiveConversations"
159+
id="sensitive"
160+
v-model="isSensitive"
161+
aria-describedby="sensitive-hint"
162+
type="switch"
163+
@update:model-value="toggleSensitive">
164+
{{ t('spreed', 'Sensitive conversation') }}
165+
</NcCheckboxRadioSwitch>
166+
167+
<p id="sensitive-hint" class="notifications__hint">
168+
{{ t('spreed', 'Message preview will be disabled in conversation list and notifications') }}
169+
</p>
170+
</div>
171+
</template>
172+
173173
<style lang="scss" scoped>
174174
.radio-button {
175175
display: flex;

0 commit comments

Comments
 (0)