Added option to exclude creator from multisig creation

This commit is contained in:
sairaj mote 2022-12-11 17:35:43 +05:30
parent 53c71c4d47
commit 237976b0d5
4 changed files with 14 additions and 8 deletions

View File

@ -1160,7 +1160,7 @@ ol li::before {
}
#selected_contacts_container:not(:empty) {
padding: 0.5rem 0;
margin: 0.5rem 0;
margin-bottom: 0.5rem;
border-bottom: solid thin rgba(var(--text-color), 0.1);
}
#selected_contacts_container .contact-preview {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1178,7 +1178,7 @@ ol {
&:not(:empty) {
padding: 0.5rem 0;
margin: 0.5rem 0;
margin-bottom: 0.5rem;
border-bottom: solid thin rgba(var(--text-color), 0.1);
}

View File

@ -888,16 +888,21 @@
<div id="creation_process">
<div>
<div id="selected_contacts">
<div class="empty-state" style="padding-top: 0">
<p class="info info--warning">*Contacts that haven't yet replied to you, can't be selected. you
can send a request or message them.</p>
</div>
<div class="flex align-center space-between">
<h4>Select members</h4>
<button id="skip_members_button" class="button button--primary hidden">
Skip </button>
</div>
<label class="flex align-center" style="padding: 1rem 0;">
<input id="add_self_check" class="margin-right-0-5" style="width: 1.3em; height: 1.3em"
type="checkbox" checked />
<span>Include self as a member</span>
</label>
<div id="selected_contacts_container" class="observe-empty-state"></div>
<div class="empty-state">
<p class="info info--warning">*Contacts that haven't yet replied to you, can't be selected. you
can send a request or message them.</p>
</div>
</div>
<div class="scrolling-wrapper">
<div id="select_contacts_container" class="observe-empty-state"></div>
@ -3285,7 +3290,8 @@
e.target.setAttribute('error-text', `Maximum ${selectedMembers.size + 1} allowed`)
})
document.getElementById('create_multisig_button').addEventListener('click', () => {
selectedMembers.add(floDapps.user.id)
if (getRef('add_self_check').checked)
selectedMembers.add(floDapps.user.id)
const selctedPubKeys = [...selectedMembers].map(id => floGlobals.pubKeys[id]);
const minRequired = parseInt(getRef('min_sign_required').value.trim());
buttonLoader('create_multisig_button', true)