aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGrigorii K. Shartsev <me@shgk.me>2024-02-21 22:53:11 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-02-23 14:39:20 +0100
commit5edcb5d79c6df2a9e3c2d86957dcdbcf556882ac (patch)
tree7e00d7662cf5a943d48ec62ef9b3074ba835c616 /apps
parentedb413bdf03264ffb08538bdd689e7b6c3bb75c3 (diff)
downloadnextcloud-server-5edcb5d79c6df2a9e3c2d86957dcdbcf556882ac.tar.gz
nextcloud-server-5edcb5d79c6df2a9e3c2d86957dcdbcf556882ac.zip
fix(updatenotification): use new SVG icons
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/src/components/UpdateNotification.vue28
1 files changed, 18 insertions, 10 deletions
diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue
index d69590e0430..093cbdd8a56 100644
--- a/apps/updatenotification/src/components/UpdateNotification.vue
+++ b/apps/updatenotification/src/components/UpdateNotification.vue
@@ -115,13 +115,15 @@
<NcActionButton v-for="channel in channelList"
:key="channel.value"
:disabled="channel.disabled"
- :icon="channel.icon"
:name="channel.text"
:value="channel.value"
:model-value="currentChannel"
type="radio"
close-after-click
@update:modelValue="changeReleaseChannel">
+ <template #icon>
+ <component :is="channel.icon" :size="20" />
+ </template>
{{ channel.longtext }}
</NcActionButton>
</template>
@@ -169,8 +171,14 @@ import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import IconChevronDown from 'vue-material-design-icons/ChevronDown.vue'
+import IconCloudCheckVariant from 'vue-material-design-icons/CloudCheckVariant.vue'
import IconLink from 'vue-material-design-icons/Link.vue'
import IconNewBox from 'vue-material-design-icons/NewBox.vue'
+import IconPencil from 'vue-material-design-icons/Pencil.vue'
+import IconSourceBranch from 'vue-material-design-icons/SourceBranch.vue'
+import IconStar from 'vue-material-design-icons/Star.vue'
+import IconWeatherNight from 'vue-material-design-icons/WeatherNight.vue'
+import IconWrench from 'vue-material-design-icons/Wrench.vue'
import debounce from 'debounce'
const logger = getLoggerBuilder()
@@ -192,6 +200,7 @@ export default {
NcSelect,
NcSettingsSection,
},
+
data() {
return {
loadingGroups: false,
@@ -269,7 +278,7 @@ export default {
channelList.push({
text: t('updatenotification', 'Enterprise'),
longtext: t('updatenotification', 'For enterprise use. Provides always the latest patch level, but will not update to the next major release immediately. That update happens once Nextcloud GmbH has done additional hardening and testing for large-scale and mission-critical deployments. This channel is only available to customers and provides the Nextcloud Enterprise package.'),
- icon: 'icon-star',
+ icon: IconStar,
active: this.currentChannel === 'enterprise',
disabled: !this.hasValidSubscription,
value: 'enterprise',
@@ -278,21 +287,25 @@ export default {
channelList.push({
text: t('updatenotification', 'Stable'),
longtext: t('updatenotification', 'The most recent stable version. It is suited for regular use and will always update to the latest major version.'),
- icon: 'icon-checkmark',
+ icon: IconCloudCheckVariant,
value: 'stable',
})
channelList.push({
text: t('updatenotification', 'Beta'),
longtext: t('updatenotification', 'A pre-release version only for testing new features, not for production environments.'),
- icon: 'icon-category-customization',
+ icon: IconWrench,
value: 'beta',
})
if (this.isNonDefaultChannel(this.currentChannel)) {
+ const nonDefaultIcons = {
+ daily: IconWeatherNight,
+ git: IconSourceBranch,
+ }
channelList.push({
text: this.currentChannel,
- icon: 'icon-rename',
+ icon: nonDefaultIcons[this.currentChannel] || IconPencil,
value: this.currentChannel,
})
}
@@ -498,11 +511,6 @@ export default {
</style>
<style lang="scss">
#updatenotification {
- /* override needed to replace yellow hover state with a dark one */
- .update-menu .icon-star:hover,
- .update-menu .icon-star:focus {
- background-image: var(--icon-starred);
- }
/* override NcSelect styling so that label can have correct width */
#notify-members-settings-select-wrapper {
width: fit-content;