delete update permission in user settings

This commit is contained in:
Ivan 2023-11-08 11:49:24 +03:00
parent 6ae2dbba20
commit cf6451231d
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583

View File

@ -208,15 +208,6 @@
{{/if}} {{/if}}
</div> </div>
<div class="permission-group">
<h2>Обновление ПО</h2>
{{#if Update}}
<img><input name="Update" type="checkbox" id="update-do" class="checkbox-input device-filter" hidden checked><label for="update-do" class="checkbox-label"><div class="checkmark"></div>Обновлять</label>
{{else}}
<img><input name="Update" type="checkbox" id="update-do" class="checkbox-input device-filter" hidden><label for="update-do" class="checkbox-label"><div class="checkmark"></div>Обновлять</label>
{{/if}}
</div>
</section> </section>
<div style="margin-left: 44px; margin-right: 72px; width: calc(100% - 44px - 72px);" class="horizontal-line"></div> <div style="margin-left: 44px; margin-right: 72px; width: calc(100% - 44px - 72px);" class="horizontal-line"></div>
@ -313,7 +304,6 @@
password: document.getElementById('user-password').value, password: document.getElementById('user-password').value,
EditTransport: document.getElementById('device-edit').checked, EditTransport: document.getElementById('device-edit').checked,
DeleteTransport: document.getElementById('device-delete').checked, DeleteTransport: document.getElementById('device-delete').checked,
Update: document.getElementById('update-do').checked,
}; };
// Объединяем все данные в один объект // Объединяем все данные в один объект