diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-19 16:05:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-19 16:05:50 +0100 |
commit | 1d8f7e7806aaa05daca39a98c174e4eff04e3e36 (patch) | |
tree | 4100626a3e5f98a36bafee68865e039aee9d908a /apps/updatenotification/src/components/root.vue | |
parent | 7ea7eb0b4a34e940257078d72909552b90f8f6af (diff) | |
parent | e7d565178131510c5081fe7a54c92d59d4ea13c3 (diff) | |
download | nextcloud-server-1d8f7e7806aaa05daca39a98c174e4eff04e3e36.tar.gz nextcloud-server-1d8f7e7806aaa05daca39a98c174e4eff04e3e36.zip |
Merge pull request #12525 from nextcloud/contrast-fix-updatenotifications
Fix updatenotifications display, dependencies and csp
Diffstat (limited to 'apps/updatenotification/src/components/root.vue')
-rw-r--r-- | apps/updatenotification/src/components/root.vue | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/apps/updatenotification/src/components/root.vue b/apps/updatenotification/src/components/root.vue index b2fcdf328cc..351fe947765 100644 --- a/apps/updatenotification/src/components/root.vue +++ b/apps/updatenotification/src/components/root.vue @@ -53,7 +53,7 @@ <template v-else-if="!isUpdateChecked">{{ t('updatenotification', 'The update check is not yet finished. Please refresh the page.') }}</template> <template v-else> {{ t('updatenotification', 'Your version is up to date.') }} - <span class="icon-info svg" :title="lastCheckedOnString"></span> + <span class="icon-info svg" v-tooltip.auto="lastCheckedOnString"></span> </template> <template v-if="!isDefaultUpdateServerURL"> @@ -81,7 +81,7 @@ <p id="oca_updatenotification_groups"> {{ t('updatenotification', 'Notify members of the following groups about available updates:') }} - <v-select multiple :value="notifyGroups" :options="availableGroups"></v-select><br /> + <multiselect v-model="notifyGroups" :options="availableGroups" :multiple="true" label="label" track-by="value" :tag-width="75" /><br /> <em v-if="currentChannel === 'daily' || currentChannel === 'git'">{{ t('updatenotification', 'Only notification for app updates are available.') }}</em> <em v-if="currentChannel === 'daily'">{{ t('updatenotification', 'The selected update channel makes dedicated notifications for the server obsolete.') }}</em> <em v-if="currentChannel === 'git'">{{ t('updatenotification', 'The selected update channel does not support updates of the server.') }}</em> @@ -90,18 +90,19 @@ </template> <script> - import vSelect from 'vue-select'; - import popoverMenu from './popoverMenu'; + import { PopoverMenu, Multiselect } from 'nextcloud-vue'; + import { VTooltip } from 'v-tooltip'; import ClickOutside from 'vue-click-outside'; export default { name: 'root', components: { - vSelect, - popoverMenu, + Multiselect, + PopoverMenu, }, directives: { - ClickOutside + ClickOutside, + tooltip: VTooltip }, data: function () { return { @@ -355,10 +356,6 @@ this.enableChangeWatcher = true; }.bind(this) }); - }, - - updated: function () { - this._$el.find('.icon-info').tooltip({placement: 'right'}); } } </script> |