Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions apps/settings/js/vue-settings-admin-security.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-admin-security.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions apps/settings/js/vue-settings-apps-users-management.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/settings/js/vue-settings-apps.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-apps.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/settings/js/vue-settings-nextcloud-pdf.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-nextcloud-pdf.js.map

Large diffs are not rendered by default.

46 changes: 34 additions & 12 deletions apps/settings/js/vue-settings-personal-info.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-personal-info.js.map

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions apps/settings/js/vue-settings-personal-security.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-personal-security.js.map

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions apps/settings/js/vue-settings-personal-webauthn.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-personal-webauthn.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions apps/settings/js/vue-settings-users.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-settings-users.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions apps/settings/js/vue-vendors-settings-apps-settings-users.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions apps/settings/js/vue-vendors-settings-apps.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-vendors-settings-apps.js.map

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions apps/settings/js/vue-vendors-settings-users.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/settings/js/vue-vendors-settings-users.js.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions apps/settings/lib/Settings/Personal/PersonalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function getForm(): TemplateResponse {
$personalInfoParameters = [
'displayNames' => $this->getDisplayNames($account),
'emails' => $this->getEmails($account),
'languages' => $this->getLanguages($user),
];

$accountParameters = [
Expand Down Expand Up @@ -256,7 +257,7 @@ function (IAccountProperty $property) {
}

/**
* returns the user language, common language and other languages in an
* returns the user's active language, common languages, and other languages in an
* associative array
*
* @param IUser $user
Expand All @@ -274,12 +275,12 @@ private function getLanguages(IUser $user): array {
$languages = $this->l10nFactory->getLanguages();

// associate the user language with the proper array
$userLangIndex = array_search($userConfLang, array_column($languages['commonlanguages'], 'code'));
$userLang = $languages['commonlanguages'][$userLangIndex];
$userLangIndex = array_search($userConfLang, array_column($languages['commonLanguages'], 'code'));
$userLang = $languages['commonLanguages'][$userLangIndex];
// search in the other languages
if ($userLangIndex === false) {
$userLangIndex = array_search($userConfLang, array_column($languages['languages'], 'code'));
$userLang = $languages['languages'][$userLangIndex];
$userLangIndex = array_search($userConfLang, array_column($languages['otherLanguages'], 'code'));
$userLang = $languages['otherLanguages'][$userLangIndex];
}
// if user language is not available but set somehow: show the actual code as name
if (!is_array($userLang)) {
Expand All @@ -290,7 +291,7 @@ private function getLanguages(IUser $user): array {
}

return array_merge(
['activelanguage' => $userLang],
['activeLanguage' => $userLang],
$languages
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
autocapitalize="none"
autocomplete="on"
autocorrect="off"
required="true"
required
@input="onDisplayNameChange">

<div class="displayname__actions-container">
Expand Down Expand Up @@ -104,7 +104,7 @@ export default {

handleResponse({ displayName, status, errorMessage, error }) {
if (status === 'ok') {
// Ensure that local initialDiplayName state reflects server state
// Ensure that local state reflects server state
this.initialDisplayName = displayName
this.showCheckmarkIcon = true
setTimeout(() => { this.showCheckmarkIcon = false }, 2000)
Expand All @@ -124,56 +124,56 @@ export default {
</script>

<style lang="scss" scoped>
.displayname {
display: grid;
align-items: center;

input {
grid-area: 1 / 1;
height: 34px;
width: 100%;
margin: 3px 3px 3px 0;
padding: 7px 6px;
cursor: text;
font-family: var(--font-face);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
color: var(--color-main-text);
}
.displayname {
display: grid;
align-items: center;

input {
grid-area: 1 / 1;
width: 100%;
height: 34px;
margin: 3px 3px 3px 0;
padding: 7px 6px;
color: var(--color-main-text);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
font-family: var(--font-face);
cursor: text;
}

.displayname__actions-container {
grid-area: 1 / 1;
justify-self: flex-end;
height: 30px;

display: flex;
gap: 0 2px;
margin-right: 5px;

.icon-checkmark,
.icon-error {
height: 30px !important;
min-height: 30px !important;
width: 30px !important;
min-width: 30px !important;
top: 0;
right: 0;
float: none;
}
.displayname__actions-container {
grid-area: 1 / 1;
justify-self: flex-end;
height: 30px;

display: flex;
gap: 0 2px;
margin-right: 5px;

.icon-checkmark,
.icon-error {
height: 30px !important;
min-height: 30px !important;
width: 30px !important;
min-width: 30px !important;
top: 0;
right: 0;
float: none;
}
}
}

.fade-enter,
.fade-leave-to {
opacity: 0;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}

.fade-enter-active {
transition: opacity 200ms ease-out;
}
.fade-enter-active {
transition: opacity 200ms ease-out;
}

.fade-leave-active {
transition: opacity 300ms ease-out;
}
.fade-leave-active {
transition: opacity 300ms ease-out;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ export default {
</script>

<style lang="scss" scoped>
section {
padding: 10px 10px;
section {
padding: 10px 10px;

&::v-deep button:disabled {
cursor: default;
}
&::v-deep button:disabled {
cursor: default;
}
}
</style>
107 changes: 54 additions & 53 deletions apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<div>
<div class="email">
<input
id="email"
ref="email"
type="email"
:name="inputName"
Expand All @@ -31,7 +32,7 @@
autocapitalize="none"
autocomplete="on"
autocorrect="off"
required="true"
required
@input="onEmailChange">

<div class="email__actions-container">
Expand Down Expand Up @@ -277,7 +278,7 @@ export default {

handleResponse({ email, status, errorMessage, error }) {
if (status === 'ok') {
// Ensure that local initialEmail state reflects server state
// Ensure that local state reflects server state
this.initialEmail = email
this.showCheckmarkIcon = true
setTimeout(() => { this.showCheckmarkIcon = false }, 2000)
Expand All @@ -297,71 +298,71 @@ export default {
</script>

<style lang="scss" scoped>
.email {
display: grid;
align-items: center;

input {
grid-area: 1 / 1;
height: 34px;
width: 100%;
margin: 3px 3px 3px 0;
padding: 7px 6px;
cursor: text;
font-family: var(--font-face);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
color: var(--color-main-text);
}

.email__actions-container {
grid-area: 1 / 1;
justify-self: flex-end;
height: 30px;
.email {
display: grid;
align-items: center;

input {
grid-area: 1 / 1;
width: 100%;
height: 34px;
margin: 3px 3px 3px 0;
padding: 7px 6px;
color: var(--color-main-text);
border: 1px solid var(--color-border-dark);
border-radius: var(--border-radius);
background-color: var(--color-main-background);
font-family: var(--font-face);
cursor: text;
}

display: flex;
gap: 0 2px;
margin-right: 5px;
.email__actions-container {
grid-area: 1 / 1;
justify-self: flex-end;
height: 30px;

.email__actions {
opacity: 0.4 !important;
display: flex;
gap: 0 2px;
margin-right: 5px;

&:hover {
opacity: 0.8 !important;
}
.email__actions {
opacity: 0.4 !important;

&::v-deep button {
height: 30px !important;
min-height: 30px !important;
width: 30px !important;
min-width: 30px !important;
}
&:hover {
opacity: 0.8 !important;
}

.icon-checkmark,
.icon-error {
&::v-deep button {
height: 30px !important;
min-height: 30px !important;
width: 30px !important;
min-width: 30px !important;
top: 0;
right: 0;
float: none;
}
}
}

.fade-enter,
.fade-leave-to {
opacity: 0;
.icon-checkmark,
.icon-error {
height: 30px !important;
min-height: 30px !important;
width: 30px !important;
min-width: 30px !important;
top: 0;
right: 0;
float: none;
}
}
}

.fade-enter-active {
transition: opacity 200ms ease-out;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}

.fade-leave-active {
transition: opacity 300ms ease-out;
}
.fade-enter-active {
transition: opacity 200ms ease-out;
}

.fade-leave-active {
transition: opacity 300ms ease-out;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ export default {
</script>

<style lang="scss" scoped>
section {
padding: 10px 10px;
section {
padding: 10px 10px;

&::v-deep button:disabled {
cursor: default;
}
&::v-deep button:disabled {
cursor: default;
}
}
</style>
Loading