|
138 | 138 | <label for="serviceClientEmail"> |
139 | 139 | Client Email |
140 | 140 | </label> |
141 | | - <input type="text" class="form-control {{#if errors.serviceClientEmail}}is-invalid{{/if}}" |
| 141 | + <input type="email" class="form-control {{#if errors.serviceClientEmail}}is-invalid{{/if}}" |
142 | 142 | id="serviceClientEmail" name="serviceClientEmail" value="{{values.serviceClientEmail}}" |
143 | 143 | placeholder="Enter the principal of the service, for example "name@project-123.iam.gserviceaccount.com"" |
144 | 144 | required /> |
|
153 | 153 | Service client |
154 | 154 | </label> |
155 | 155 | <input type="text" class="form-control {{#if errors.serviceClient}}is-invalid{{/if}}" id="serviceClient" |
156 | | - name="serviceClient" value="{{values.serviceClient}}" placeholder="Enter service client ID…" /> |
| 156 | + name="serviceClient" value="{{values.serviceClient}}" placeholder="Enter service client ID…" |
| 157 | + required /> |
157 | 158 | {{#if errors.serviceClient}} |
158 | 159 | <span class="invalid-feedback">{{errors.serviceClient}}</span> |
159 | 160 | {{/if}} |
|
167 | 168 | <textarea class="form-control droptxt autoselect {{#if errors.serviceKey}}is-invalid{{/if}}" id="serviceKey" |
168 | 169 | name="serviceKey" rows="4" data-enable-grammarly="false" spellcheck="false" {{#if |
169 | 170 | hasServiceKey}}placeholder="Service key is set but not shown…" {{else}} |
170 | | - placeholder="Starts with "-----BEGIN PRIVATE KEY-----"…" |
171 | | - {{/if}}>{{values.serviceKey}}</textarea> |
| 171 | + placeholder="Starts with "-----BEGIN PRIVATE KEY-----"…" {{/if}} {{#unless |
| 172 | + hasServiceKey}}required{{/unless}}>{{values.serviceKey}}</textarea> |
172 | 173 | {{#if errors.serviceKey}} |
173 | 174 | <span class="invalid-feedback">{{errors.serviceKey}}</span> |
174 | 175 | {{/if}} |
|
420 | 421 | </label> |
421 | 422 | <input type="text" class="form-control {{#if errors.googleTopicName}}is-invalid{{/if}}" id="googleTopicName" |
422 | 423 | name="googleTopicName" value="{{values.googleTopicName}}" |
423 | | - placeholder="Enter the Topic Name for the Google Pub/Sub subscription, for example "ee-pubsub-12345"" /> |
| 424 | + placeholder="Enter the Topic Name for the Google Pub/Sub subscription, for example "ee-pub-12345"" /> |
424 | 425 | {{#if errors.googleTopicName}} |
425 | 426 | <span class="invalid-feedback">{{errors.googleTopicName}}</span> |
426 | 427 | {{/if}} |
427 | 428 | <small class="form-text text-muted">OAuth2 Pub/Sub Topic Name. Automatically generated if not set.</small> |
428 | 429 | </div> |
429 | 430 |
|
| 431 | + <div class="form-group"> |
| 432 | + <label for="googleSubscriptionName"> |
| 433 | + Google Pub/Sub Subscription Name |
| 434 | + </label> |
| 435 | + <input type="text" class="form-control {{#if errors.googleSubscriptionName}}is-invalid{{/if}}" |
| 436 | + id="googleSubscriptionName" name="googleSubscriptionName" value="{{values.googleSubscriptionName}}" |
| 437 | + placeholder="Enter the Subscription Name for the Google Pub/Sub subscription, for example "ee-sub-12345"" /> |
| 438 | + {{#if errors.googleSubscriptionName}} |
| 439 | + <span class="invalid-feedback">{{errors.googleSubscriptionName}}</span> |
| 440 | + {{/if}} |
| 441 | + <small class="form-text text-muted">OAuth2 Pub/Sub Subscription Name. Automatically generated if not |
| 442 | + set.</small> |
| 443 | + </div> |
| 444 | + |
430 | 445 | {{else}} |
431 | 446 |
|
432 | | - {{#if appData.pubSubTopic}} |
| 447 | + <dl class="row"> |
433 | 448 |
|
434 | | - Pub/Sub Topic: |
435 | | - <code> |
436 | | - {{lastVal appData.pubSubTopic "/"}} |
437 | | - </code> |
| 449 | + <dt class="col-sm-3">Pub/Sub Topic</dt> |
| 450 | + <dd class="col-sm-9"> |
| 451 | + {{#if appData.pubSubTopic}} |
438 | 452 |
|
439 | | - {{else}} |
| 453 | + <code>{{lastVal appData.pubSubTopic "/"}}</code> |
| 454 | + {{else}} |
| 455 | + Not initialized |
| 456 | + {{/if}} |
| 457 | + </dd> |
440 | 458 |
|
441 | | - Pub/Sub Topic not set up |
442 | 459 |
|
443 | | - {{/if}} |
| 460 | + <dt class="col-sm-3">Pub/Sub Subscription</dt> |
| 461 | + <dd class="col-sm-9"> |
| 462 | + {{#if appData.pubSubSubscription}} |
| 463 | + <code>{{lastVal appData.pubSubSubscription "/"}}</code> |
| 464 | + {{else}} |
| 465 | + Not initialized |
| 466 | + {{/if}} |
| 467 | + </dd> |
| 468 | + </dl> |
| 469 | + |
444 | 470 |
|
445 | 471 | {{/if}} |
446 | 472 |
|
|
0 commit comments