-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpublish.html
More file actions
57 lines (57 loc) · 2.35 KB
/
publish.html
File metadata and controls
57 lines (57 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<lightning-card title="Publish a streaming event">
<div class="slds-var-p-horizontal_large">
<lightning-combobox
label="Event type"
value={pubEventType}
options={pubEventTypes}
placeholder="Select type"
onchange={handlePubEventTypeChange}
></lightning-combobox>
<template if:true={pubEventType}>
<!-- Manual publish allowed -->
<template if:true={isManualPublishedAllowed}>
<lightning-combobox
label="Event name"
value={pubEventName}
options={pubEventNames}
placeholder={pubEventNamePlaceholder}
onchange={handlePubEventNameChange}
disabled={isPubEventNameDisabled}
></lightning-combobox>
<lightning-input
label="Streaming channel"
value={pubChannel}
disabled
></lightning-input>
<lightning-textarea
label="Event payload"
value={pubPayload}
onchange={handlePubPayloadChange}
disabled={isPublishDisabled}
field-level-help={pubPayloadHelp}
></lightning-textarea>
<div
class="slds-align_absolute-center slds-var-m-top_medium"
>
<lightning-button
variant="brand"
label="Publish"
onclick={handlePublish}
disabled={isPublishDisabled}
></lightning-button>
</div>
</template>
<!-- Manual publish not allowed -->
<template if:false={isManualPublishedAllowed}>
<c-notice>
<p>
This type of event can only be published by the
Platform.
</p>
</c-notice>
</template>
</template>
</div>
</lightning-card>
</template>