Conversation
|
Hi there @bjarnef, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
|
@Zeegaan I have updated |
|
Similar to content type picker in MNTP configuration, so folder selection is disabled. Like this PR #15034 regarding |
| size="xxs" | ||
| label="Details"> | ||
| </umb-button> | ||
| </td> |
There was a problem hiding this comment.
It had a column too much and there shouldn't be a delete webhook button in log entry :)
|
|
||
| function clearContentType(contentTypeKey) { | ||
| if (Array.isArray($scope.model.webhook.contentTypeKeys)) { | ||
| if (Utilities.isArray($scope.model.webhook.contentTypeKeys)) { |
There was a problem hiding this comment.
Just for my own knowledge, what is the difference between using Utilities & Array ? 🤔
There was a problem hiding this comment.
Not much, it is just a wrapper we use much elsewhere in codebase and some of the methods have replaced the angular functions.
There was a problem hiding this comment.
Most of the time there won't be a difference.
Not sure if Array.isArray(val) could return a different result than val instanceof Array
I tried with [], "", null, undefined, NaN .. all returned same result.
| case "member": | ||
| editorService.memberTypePicker(editor); | ||
| break; | ||
| } |
There was a problem hiding this comment.
It is in the pipeline for rc-2 (but no promises 😛), so I think it's okay 👍
There was a problem hiding this comment.
At least it never opens member type picker for now and if #15080 gets merged, we can eventually refactor this part, but anyway it should still work 😎
| <div class="flx-g0 flx-s0" style="flex-basis: 40px;"> | ||
| <umb-checkmark checked="true" size="m" style="cursor: default"></umb-checkmark> | ||
| <i class="icon-wrong umb-checkmark umb-checkmark--m" style="cursor: default;" ng-if="model.webhookLogEntry.response.isSuccess === false"></i> | ||
| <umb-icon icon="icon-wrong" class="umb-checkmark umb-checkmark--m" style="cursor: default;" ng-if="model.webhookLogEntry.response.isSuccess === false"></umb-icon> |
There was a problem hiding this comment.
I didn't have any logs, but we should use <umb-icon> instead of the <i> element :)
|
Aha totally missed that! |
We can have a look in another PR 👍 |
|
Looks good, tests good 🚀 |
* Update icons * Update tree headers * Cleanup and change icon name * Use button element instead * Disable button instead * Fix overlay title * Simplify labels * Add datalist for common headers * Use Utilties function * Events in plural form * Cleanup and formatting * Formatting * More formatting * Stop event bubbling when clicking delete button * Sync tree node and show loading indicator * Add webhook icon * Remove globe icon to not confuse with languages * Update logs * Remove extra column with delete button which shouldn't be there * Use umb-icon and update titles * Use content type picker (cherry picked from commit 29be27b)




Prerequisites
Description
Some corrections for #15050
<button>elements.Furthermore I think editing webhook shouldn't modify model directly, but only if actually saved and not update in background, e.g. when typing URL or toggle enabled state.
I also noticed when unchecking the selected events, it reset to original selection. Maybe selecting Content or Media events should filter the others, but just disable them?