Permission select
This commit is contained in:
parent
4d42043732
commit
96b839d97e
@ -19,12 +19,19 @@
|
||||
<ChannelDropdown label="Archive Channel" col2=true channels={channels} bind:value={data.archive_channel}/>
|
||||
<CategoryDropdown label="Channel Category" col2=true channels={channels} bind:value={data.category}/>
|
||||
</div>
|
||||
<div class="row" style="justify-content: flex-start">
|
||||
<div class="row">
|
||||
<NamingScheme col4=true bind:value={data.naming_scheme}/>
|
||||
<Checkbox label="Enable User Feedback" col4=true bind:value={data.feedback_enabled}/>
|
||||
<Checkbox label="Hide Claim Button" col4=true bind:value={data.hide_claim_button}/>
|
||||
<Checkbox label="Disable /open Command" col4=true bind:value={data.disable_open_command}/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<Dropdown col3={true} label="Context Menu Permission Level" bind:value={data.context_menu_permission_level}>
|
||||
<option value="0">Everyone</option>
|
||||
<option value="1">Support Representative</option>
|
||||
<option value="2">Administrator</option>
|
||||
</Dropdown>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-1">
|
||||
<Button icon="fas fa-paper-plane" fullWidth=true>Submit</Button>
|
||||
@ -49,6 +56,7 @@
|
||||
import CategoryDropdown from "../CategoryDropdown.svelte";
|
||||
import Button from "../Button.svelte";
|
||||
import NamingScheme from "../NamingScheme.svelte";
|
||||
import Dropdown from "../form/Dropdown.svelte";
|
||||
|
||||
export let guildId;
|
||||
|
||||
@ -165,6 +173,7 @@
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.settings-form {
|
||||
|
@ -125,27 +125,39 @@
|
||||
filterSettings.username = undefined;
|
||||
};
|
||||
|
||||
|
||||
let loading = false;
|
||||
|
||||
async function loadPrevious() {
|
||||
if (loading) return;
|
||||
|
||||
if (page === 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
let paginationSettings = buildPaginationSettings(page - 1);
|
||||
|
||||
loading = true;
|
||||
if (await loadData(paginationSettings)) {
|
||||
page--;
|
||||
}
|
||||
loading = false;
|
||||
}
|
||||
|
||||
async function loadNext() {
|
||||
if (loading) return;
|
||||
|
||||
if (transcripts.length < pageLimit || transcripts[transcripts.length - 1].ticket_id === 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
let paginationSettings = buildPaginationSettings(page + 1);
|
||||
|
||||
loading = true;
|
||||
if (await loadData(paginationSettings)) {
|
||||
page++;
|
||||
}
|
||||
loading = false;
|
||||
}
|
||||
|
||||
function buildPaginationSettings(page) {
|
||||
|
2
go.mod
2
go.mod
@ -6,7 +6,7 @@ require (
|
||||
github.com/BurntSushi/toml v0.3.1
|
||||
github.com/TicketsBot/archiverclient v0.0.0-20210220155137-a562b2f1bbbb
|
||||
github.com/TicketsBot/common v0.0.0-20210727134627-35eb7ed03a44
|
||||
github.com/TicketsBot/database v0.0.0-20210901165354-a7e41939592c
|
||||
github.com/TicketsBot/database v0.0.0-20210901195306-fcfc088bc2f9
|
||||
github.com/TicketsBot/worker v0.0.0-20210831230124-0f73f4a70602
|
||||
github.com/apex/log v1.1.2
|
||||
github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff // indirect
|
||||
|
2
locale
2
locale
@ -1 +1 @@
|
||||
Subproject commit ce006c345e84acdffd369878dc16b45048f5a92b
|
||||
Subproject commit 2d5a1b686f1ea19a14968c424c4bb177b93c4e06
|
Loading…
x
Reference in New Issue
Block a user