aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/Users/UserListHeader.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/components/Users/UserListHeader.vue')
-rw-r--r--apps/settings/src/components/Users/UserListHeader.vue54
1 files changed, 21 insertions, 33 deletions
diff --git a/apps/settings/src/components/Users/UserListHeader.vue b/apps/settings/src/components/Users/UserListHeader.vue
index e314bcb6a73..a85306d84d3 100644
--- a/apps/settings/src/components/Users/UserListHeader.vue
+++ b/apps/settings/src/components/Users/UserListHeader.vue
@@ -1,23 +1,6 @@
<!--
- - @copyright 2023 Christopher Ng <chrng8@gmail.com>
- -
- - @author Christopher Ng <chrng8@gmail.com>
- -
- - @license AGPL-3.0-or-later
- -
- - This program is free software: you can redistribute it and/or modify
- - it under the terms of the GNU Affero General Public License as
- - published by the Free Software Foundation, either version 3 of the
- - License, or (at your option) any later version.
- -
- - This program is distributed in the hope that it will be useful,
- - but WITHOUT ANY WARRANTY; without even the implied warranty of
- - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- - GNU Affero General Public License for more details.
- -
- - You should have received a copy of the GNU Affero General Public License
- - along with this program. If not, see <http://www.gnu.org/licenses/>.
- -
+ - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
+ - SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
@@ -35,8 +18,12 @@
<strong>
{{ t('settings', 'Display name') }}
</strong>
- <span class="header__subtitle">
- {{ t('settings', 'Username') }}
+ </th>
+ <th class="header__cell header__cell--username"
+ data-cy-user-list-header-username
+ scope="col">
+ <span>
+ {{ t('settings', 'Account name') }}
</span>
</th>
<th class="header__cell"
@@ -55,7 +42,7 @@
scope="col">
<span>{{ t('settings', 'Groups') }}</span>
</th>
- <th v-if="subAdminsGroups.length > 0 && settings.isAdmin"
+ <th v-if="settings.isAdmin || settings.isDelegatedAdmin"
class="header__cell header__cell--large"
data-cy-user-list-header-subadmins
scope="col">
@@ -77,13 +64,19 @@
data-cy-user-list-header-storage-location
scope="col">
<span v-if="showConfig.showUserBackend">
- {{ t('settings', 'User backend') }}
+ {{ t('settings', 'Account backend') }}
</span>
<span v-if="showConfig.showStoragePath"
class="header__subtitle">
{{ t('settings', 'Storage location') }}
</span>
</th>
+ <th v-if="showConfig.showFirstLogin"
+ class="header__cell"
+ data-cy-user-list-header-first-login
+ scope="col">
+ <span>{{ t('settings', 'First login') }}</span>
+ </th>
<th v-if="showConfig.showLastLogin"
class="header__cell"
data-cy-user-list-header-last-login
@@ -100,7 +93,7 @@
data-cy-user-list-header-actions
scope="col">
<span class="hidden-visually">
- {{ t('settings', 'User actions') }}
+ {{ t('settings', 'Account actions') }}
</span>
</th>
</tr>
@@ -132,11 +125,6 @@ export default Vue.extend({
return this.$store.getters.getServerData
},
- subAdminsGroups() {
- // @ts-expect-error: allow untyped $store
- return this.$store.getters.getSubadminGroups
- },
-
passwordLabel(): string {
if (this.hasObfuscated) {
// TRANSLATORS This string is for a column header labelling either a password or a message that the current user has insufficient permissions
@@ -153,12 +141,12 @@ export default Vue.extend({
</script>
<style lang="scss" scoped>
-@import './shared/styles.scss';
+@use './shared/styles';
.header {
- @include row;
- @include cell;
-
border-bottom: 1px solid var(--color-border);
+
+ @include styles.row;
+ @include styles.cell;
}
</style>