From c9670870a9b08c6ba1235db7bc32e2acb3d2adf2 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 2 Jul 2023 02:00:50 +0200 Subject: fix(updatenotification): Remove deprecated `NcPopoverMenu` and cleanup * Replace `NcPopoverMenu` with `NcActions` and cleanup related code * Move text under related heading for better content structure * Fix some eslint warnings Signed-off-by: Ferdinand Thiessen --- .../src/components/UpdateNotification.vue | 252 +++++++++++---------- 1 file changed, 127 insertions(+), 125 deletions(-) (limited to 'apps') diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue index 88ea8e50791..c8374a12195 100644 --- a/apps/updatenotification/src/components/UpdateNotification.vue +++ b/apps/updatenotification/src/components/UpdateNotification.vue @@ -7,13 +7,15 @@

+
+

-
- {{ t('updatenotification', 'You can change the update channel below which also affects the apps management page. E.g. after switching to the beta channel, beta app updates will be offered to you in the apps management page.') }} +

{{ t('updatenotification', 'Update channel') }}

+

+ {{ t('updatenotification', 'Changing the update channel also affects the apps management page. E.g. after switching to the beta channel, beta app updates will be offered to you in the apps management page.') }} +

+
+ {{ t('updatenotification', 'Current update channel:') }} + + + +
- -

- {{ t('updatenotification', 'Update channel:') }} -
- - {{ localizedChannelName }} - - - -
-

-

{{ t('updatenotification', 'You can always update to a newer version. But you can never downgrade to a more stable version.') }}
+

-

- {{ t('updatenotification', 'Notify members of the following groups about available updates:') }} - - - -
+

{{ t('updatenotification', 'Notify members of the following groups about available updates:') }}

+ + + +

{{ t('updatenotification', 'Only notifications for app updates are available.') }} {{ t('updatenotification', 'The selected update channel makes dedicated notifications for the server obsolete.') }} - {{ t('updatenotification', 'The selected update channel does not support updates of the server.') }} + {{ t('updatenotification', 'The selected update channel does not support updates of the server.') }}

@@ -459,6 +464,10 @@ export default { max-width: 900px; } + .topMargin { + margin-top: 15px; + } + div.update, p:not(.inlineblock) { margin-bottom: 25px; @@ -467,17 +476,23 @@ export default { margin-top: 25px; } h3 { - cursor: pointer; - .icon { + &.clickable { cursor: pointer; + .icon { + cursor: pointer; + } } &:first-of-type { margin-top: 0; } - &.update-channel-selector { - display: inline-block; - cursor: inherit; - } + } + h4 { + margin-block-end: 0.7rem; + } + .update-channel-selector { + display: flex; + align-items: center; + gap: 12px; } .icon { display: inline-block; @@ -486,20 +501,6 @@ export default { .icon-triangle-s, .icon-triangle-n { opacity: 0.5; } - .whatsNew { - display: inline-block; - } - .toggleWhatsNew { - position: relative; - } - .popovermenu { - p { - margin-bottom: 0; - width: 100%; - } - margin-top: 5px; - width: 300px; - } .applist { margin-bottom: 25px; } @@ -518,32 +519,33 @@ export default { opacity: 1; } } - .popovermenu { - display: none; - top: 28px; - &.show-menu { - display: block; - } - } } } -- cgit v1.2.3