Delete and rename conversations
This commit is contained in:
@@ -32,9 +32,51 @@
|
||||
</div>
|
||||
|
||||
<template id="tpl-conversation-item">
|
||||
<button type="button" class="conversations__item">
|
||||
<span class="conversations__item-title"></span>
|
||||
<span class="conversations__item-updated"></span>
|
||||
</button>
|
||||
<div class="conversations__item">
|
||||
<button type="button" class="conversations__item-main">
|
||||
<span class="conversations__item-title"></span>
|
||||
<span class="conversations__item-dates">
|
||||
<span class="conversations__item-created"></span>
|
||||
<span class="conversations__item-updated"></span>
|
||||
</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="conversations__item-btn conversations__item-rename"
|
||||
aria-label="Rename conversation"
|
||||
>
|
||||
<svg class="icon"><use href="/static/icons.svg#edit"></use></svg>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="conversations__item-btn conversations__item-delete"
|
||||
aria-label="Delete conversation"
|
||||
>
|
||||
<svg class="icon"><use href="/static/icons.svg#trash"></use></svg>
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template id="tpl-rename-modal">
|
||||
<div class="modal">
|
||||
<div class="modal__header">
|
||||
<h2>Rename Conversation</h2>
|
||||
<button type="button" class="modal__close" aria-label="Cancel">
|
||||
<svg class="icon"><use href="/static/icons.svg#close"></use></svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal__body">
|
||||
<input
|
||||
type="text"
|
||||
class="modal__input"
|
||||
id="rename-input"
|
||||
maxlength="256"
|
||||
autocomplete="off"
|
||||
/>
|
||||
</div>
|
||||
<div class="modal__footer">
|
||||
<button type="button" class="modal__save" id="rename-save">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user