From a90b179fb4973cea4bca766f5a38a2958280e50b Mon Sep 17 00:00:00 2001 From: Joseph Chatelain Date: Wed, 7 Jun 2023 12:00:31 -0700 Subject: [PATCH 1/5] add submit to GCN text near submit button --- .../message-composition/MessageCompositionForm.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/message-composition/MessageCompositionForm.vue b/src/components/message-composition/MessageCompositionForm.vue index 23d6493..d68d62f 100644 --- a/src/components/message-composition/MessageCompositionForm.vue +++ b/src/components/message-composition/MessageCompositionForm.vue @@ -8,13 +8,16 @@ - -
- Submit to {{this.hermesMessage.topic}} + + Submit + + to {{this.hermesMessage.topic}} +
+ and GCN
- + Clear Form From 033469e79a11d05bf3783ff6382f366cfaadb753 Mon Sep 17 00:00:00 2001 From: Joseph Chatelain Date: Wed, 7 Jun 2023 15:47:26 -0700 Subject: [PATCH 2/5] make extra tables open by default. --- src/components/message-composition/MessageCompositionForm.vue | 2 +- src/views/MessageDetail.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/message-composition/MessageCompositionForm.vue b/src/components/message-composition/MessageCompositionForm.vue index d68d62f..8b61a6a 100644 --- a/src/components/message-composition/MessageCompositionForm.vue +++ b/src/components/message-composition/MessageCompositionForm.vue @@ -14,7 +14,7 @@ to {{this.hermesMessage.topic}}
- and GCN + and GCN Circulars
diff --git a/src/views/MessageDetail.vue b/src/views/MessageDetail.vue index 81b2380..2cb591e 100644 --- a/src/views/MessageDetail.vue +++ b/src/views/MessageDetail.vue @@ -64,7 +64,7 @@

{{ field.toUpperCase().replace("_", " ") }} KEYPAIRS ☰

- + - {{ error }} + From d8dcec2cadea006a7cb1c2c10ffcf73c0d4d1b75 Mon Sep 17 00:00:00 2001 From: Joseph Chatelain Date: Fri, 9 Jun 2023 15:42:22 -0700 Subject: [PATCH 4/5] let user know which gcn a message is sent to based on the hermes backend being used. --- .../message-composition/MessageCompositionForm.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/message-composition/MessageCompositionForm.vue b/src/components/message-composition/MessageCompositionForm.vue index 8b61a6a..f239ba7 100644 --- a/src/components/message-composition/MessageCompositionForm.vue +++ b/src/components/message-composition/MessageCompositionForm.vue @@ -12,12 +12,12 @@ Submit
- to {{this.hermesMessage.topic}} + to {{this.hermesMessage.topic}}
- and GCN Circulars + and {{getGCNDestination()}}
- + Clear Form @@ -115,6 +115,13 @@ export default { this.logout(); } }, + getGCNDestination: function() { + // This should probably pull from an API endopoint on the backend, but is hopefully sufficient for now. + if (this.getHermesUrl == "http://hermes.lco.global/") { + return "circulars@gcn.nasa.gov" + } + return "circulars@dev.gcn.nasa.gov" + }, generatePlainText: function() { let payload = this.sanitizedMessageData(); // Post message via axios From 23fb0701686d9316c452192dda2d410a8e70fac3 Mon Sep 17 00:00:00 2001 From: Joseph Chatelain Date: Thu, 29 Jun 2023 15:34:06 -0700 Subject: [PATCH 5/5] fix https typo --- src/components/message-composition/MessageCompositionForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/message-composition/MessageCompositionForm.vue b/src/components/message-composition/MessageCompositionForm.vue index f239ba7..7f52f8d 100644 --- a/src/components/message-composition/MessageCompositionForm.vue +++ b/src/components/message-composition/MessageCompositionForm.vue @@ -117,7 +117,7 @@ export default { }, getGCNDestination: function() { // This should probably pull from an API endopoint on the backend, but is hopefully sufficient for now. - if (this.getHermesUrl == "http://hermes.lco.global/") { + if (this.getHermesUrl == "https://hermes.lco.global/") { return "circulars@gcn.nasa.gov" } return "circulars@dev.gcn.nasa.gov"