Display the URLs as clickable hyperlinks in the task WUI Example screenshot: https://imgur.com/a/NHlVUMd Release-Notes: URLs now appear as hyperlinks in task WUI rather than plain text Change-Id: I4200b42cb9cb19da7490039d0a4ad4a7bf217297
diff --git a/gr-task-plugin/gr-task-plugin-tasks.js b/gr-task-plugin/gr-task-plugin-tasks.js index 0f89fb6..c4432c3 100644 --- a/gr-task-plugin/gr-task-plugin-tasks.js +++ b/gr-task-plugin/gr-task-plugin-tasks.js
@@ -38,6 +38,11 @@ type: String, notify: true, }, + + config: { + type: Object, + value() { return {}; }, + }, }; }
diff --git a/gr-task-plugin/gr-task-plugin-tasks_html.js b/gr-task-plugin/gr-task-plugin-tasks_html.js index 9122a9d..510c534 100644 --- a/gr-task-plugin/gr-task-plugin-tasks_html.js +++ b/gr-task-plugin/gr-task-plugin-tasks_html.js
@@ -55,7 +55,13 @@ [[task.name]] </template> </template> - <template is="dom-if" if="[[task.hint]]">[[task.hint]]</template> + <template is="dom-if" if="[[task.hint]]"> + <gr-linked-text style="display: -webkit-inline-box;" + pre="" + content="[[task.hint]]" + config="[[config]]"> + </gr-linked-text> + </template> </li> </template> <ul style="list-style-type:none; margin: 0 0 0 0; padding: 0 0 0 2em;">