-
-
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: add example contact on first login #50156
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
b237d7a
to
3af4fc4
Compare
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
if ($event->getAddressBookData()['uri'] === CardDavBackend::PERSONAL_ADDRESSBOOK_URI) { | ||
$this->defaultContactService->createDefaultContact((string)$event->getAddressBookId()); | ||
} |
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.
Btw, I fixed the problem of the address book not being available during first login. In case you want to go back to the first login event handler.
Ref #50369
console.log('Event:', event) | ||
|
||
const file = event.target.files[0] | ||
console.log('Selected file:', file) |
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.
console.log('Selected file:', file) |
this.$refs.exampleContactImportInput.click() | ||
}, | ||
processFile(event) { | ||
console.log('processFile triggered') |
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.
console.log('processFile triggered') |
processFile(event) { | ||
console.log('processFile triggered') | ||
this.loading = true | ||
console.log('Event:', event) |
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.
console.log('Event:', event) |
public function getName(): ?string { | ||
return 'Example Content'; | ||
} | ||
|
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.
public function getName(): ?string { | |
return 'Example Content'; | |
} |
This method does not exist in ISettings
.
<NcButton v-if="enableDefaultContact" | ||
class="import-button" | ||
type="primary" | ||
@click="toggleModal"> | ||
<template #icon> | ||
<IconUpload :size="20" /> | ||
</template> | ||
{{ $t('dav', 'Import contact') }} | ||
</NcButton> |
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.
Perhaps also add a button to clear the custom contact? To reset the example contact to the built-in default value.
*/ | ||
public function setAppConfig($key, $allow) { | ||
if ($allow === 'yes' && $key === 'enableDefaultContact' && !$this->defaultContactExists()) { | ||
$this->setInitialDefaultContact(); |
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.
This method does not exist.
Call to undefined method OCA\DAV\Controller\ExampleContentController::setInitialDefaultContact() in file '/master/apps/dav/lib/Controller/ExampleContentController.php' line 44
Checklist