Skip to content

Commit

Permalink
NOISSUE - Add prefix to provider login and signup links
Browse files Browse the repository at this point in the history
Signed-off-by: ianmuchyri <[email protected]>
  • Loading branch information
ianmuchyri authored Mar 14, 2024
1 parent 8dd46ba commit df7889e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions ui/web/templates/channelthings.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h1 class="modal-title" id="addThingModalLabel">Add Thing</h1>
<tbody>
{{ $channelID := .ChannelID }}
{{ range $i, $t := .Things }}
<tr>
<tr onclick="viewThing('{{ $t.ID }}')" class="clickable-row">
<td>{{ $t.Name }}</td>
<td class="tags-col">
{{ range $j, $tag := $t.Tags }}
Expand Down Expand Up @@ -160,8 +160,12 @@ <h1 class="modal-title" id="addThingModalLabel">Add Thing</h1>
function openThingModal() {
thingModal.show();
}
</script>
<script type="module">

function viewThing(id) {
let pathPrefix = "{{ pathPrefix }}";
window.location.href = `${pathPrefix}/things/${id}`;
}
</script> <script type="module">
import { fetchIndividualEntity } from "/js/infinitescroll.js";

fetchIndividualEntity({
Expand Down
2 changes: 1 addition & 1 deletion ui/web/templates/groupchannels.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h1 class="modal-title" id="addChannelModalLabel">Add Channel</h1>
}

function viewChannel(channelID) {
window.location.href = '{{ printf "%s/channels/%s" pathPrefix}}' + channelID;
window.location.href = '{{ printf "%s/channels/" pathPrefix}}' + channelID;
}
</script> <script type="module">
import { fetchIndividualEntity } from "/js/infinitescroll.js";
Expand Down

0 comments on commit df7889e

Please sign in to comment.