-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dav): implement personal absence settings #40767
Conversation
1ef66bf
to
2a1094f
Compare
$this->initialState->provideInitialState('hide_absence', $hideAbsence); | ||
if (!$hideAbsence) { | ||
try { | ||
$absence = $this->absenceMapper->findByUserId($this->userId); |
Check notice
Code scanning / Psalm
PossiblyNullArgument Note
2a1094f
to
3d08bb7
Compare
3d08bb7
to
c557c4a
Compare
65b825d
to
0956226
Compare
0956226
to
e99916b
Compare
e99916b
to
0793e59
Compare
0793e59
to
e17b0dd
Compare
e17b0dd
to
1248c5d
Compare
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1248c5d
to
425e770
Compare
Rebase round 2 to finally get green CI 🙃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ✅
Could this be moved into an OCS endpoint so talk mobile clients could set the OOO as well? |
Good idea! #41458 |
lastDay: formatDateAsYMD(this.lastDay), | ||
status: this.status, | ||
message: this.message, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should show success after this?
async clearAbsence() { | ||
this.loading = true | ||
try { | ||
await axios.delete(generateUrl('/apps/dav/settings/absence')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should show success after this?
For translation, I'm not 100% sure of the strings
I tend to the first option, but in this case it would make sense to define the different kind of absence status like in other software (e.g. busy, away, available, ....) |
The first one. the "Short" is set as "User status", the long one is shown in Mail and Talk close to the inputs iirc |
Summary
The new absence form is hidden/disabled by default. It has to be manually enabled via the app config
hide_absence_settings
.The help texts and descriptions might some need more work once the feature is fleshed out.
TODO
Checklist