-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Looks like the change comment type feat is broken in the new "Zendesk Agent Workspace" (the new ticket UI).
The property is client.set('comment.type', value)
Here's a basic app that reproduces the issue:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- See Using Zendesk Garden:
https://developer.zendesk.com/apps/docs/developer-guide/setup#using-zendesk-garden
https://garden.zendesk.com/css-components/bedrock/
https://garden.zendesk.com/css-components/utilities/typography/
-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/combine/npm/@zendeskgarden/[email protected],npm/@zendeskgarden/[email protected]">
</head>
<body>
<h2 class="u-semibold u-fs-xl">Hello, World!</h2>
<button id="public" type="button">Change to Public</button>
<button id="internal" type="button">Change to Internal</button>
<p>Current type: <span id="current"></span></p>
<script src="https://static.zdassets.com/zendesk_app_framework_sdk/2.0/zaf_sdk.min.js"></script>
<script>
// Initialise Apps framework client. See also:
// https://developer.zendesk.com/apps/docs/developer-guide/getting_started
var client = ZAFClient.init();
client.invoke('resize', { width: '100%', height: '200px' });
var publicBtn = document.getElementById('public');
var internalBtn = document.getElementById('internal');
var current = document.getElementById('current');
client.on('comment.type.changed', function(e) {
console.log('Type has been changed to:', e);
current.textContent = e;
});
publicBtn.onclick = function() {
client.set('comment.type', 'publicReply')
};
internalBtn.onclick = function() {
client.set('comment.type', 'internalNote')
};
client.get('comment.type').then(function(data) {
current.textContent = data['comment.type'];
});
</script>
</body>
</html>
Metadata
Metadata
Assignees
Labels
No labels