Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
MG-42 - Remove creation of a channel with a parent channel (#250)
Browse files Browse the repository at this point in the history
* remove creating a channel with a parent

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>

* remove infinite scroll option for parent filter

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>

---------

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
  • Loading branch information
ianmuchyri authored Mar 21, 2024
1 parent 60e2d6a commit 72bd62e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion ui/api/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,6 @@ func decodeChannelCreation(_ context.Context, r *http.Request) (interface{}, err
Name: r.PostFormValue("name"),
Description: r.PostFormValue("description"),
Metadata: meta,
ParentID: r.PostFormValue("parentID"),
}

return createChannelReq{
Expand Down
25 changes: 0 additions & 25 deletions ui/web/templates/channels.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,6 @@ <h1 class="modal-title" id="addChannelModalLabel">Add Channel</h1>
/>
<div id="nameError" class="text-danger"></div>
</div>
<div class="mb-3">
<label for="infiniteScroll" class="form-label">Parent Name</label>
<input
type="text"
class="itemsFilter"
name="parentFilter"
id="parentFilter"
placeholder="Filter by parent name"
/>
<select
class="form-select"
name="parentID"
id="infiniteScroll"
size="5"
>
<option disabled>select a channel</option>
</select>
</div>
<div class="mb-3">
<label for="description" class="form-label">Description</label>
<input
Expand Down Expand Up @@ -280,13 +262,6 @@ <h1 class="modal-title" id="addChannelsModalLabel">Add Channels</h1>
alertDiv: "alertBulkMessage",
modal: channelsModal,
});

fetchIndividualEntity({
input: "parentFilter",
itemSelect: "infiniteScroll",
item: "channels",
pathPrefix: "{{ pathPrefix }}",
});
</script>
</body>
</html>
Expand Down

0 comments on commit 72bd62e

Please sign in to comment.