From 0f874f1ad5a558376cf5c151a63729355d68af64 Mon Sep 17 00:00:00 2001 From: Tyagiquamar Date: Wed, 23 Sep 2026 23:18:32 +0530 Subject: [PATCH] fix(settings): use showWarning from @nextcloud/dialogs for disabled password change --- apps/settings/src/components/UserList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/settings/src/components/UserList.vue b/apps/settings/src/components/UserList.vue index 2a9478b13dd19..5b47049be1360 100644 --- a/apps/settings/src/components/UserList.vue +++ b/apps/settings/src/components/UserList.vue @@ -72,7 +72,7 @@ import type { IUser } from '../views/user-types.d.ts' import type { FormData } from './Users/userFormUtils.ts' import { mdiAccountGroupOutline } from '@mdi/js' -import { showError } from '@nextcloud/dialogs' +import { showError, showWarning } from '@nextcloud/dialogs' import { translate as t } from '@nextcloud/l10n' import { computed, reactive, ref, watch } from 'vue' import { Fragment } from 'vue-frag' @@ -328,7 +328,7 @@ async function redirectIfDisabled() { loadUsers() if (!settings.value.canChangePassword) { - window.OC.Notification.showTemporary(t('settings', 'Password change is disabled because the master key is disabled')) + showWarning(t('settings', 'Password change is disabled because the master key is disabled')) } initForm() redirectIfDisabled()