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

MG-42 - Remove creation of a channel with a parent channel #250

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading